def create_roles_and_permissions
      if Rails.version < '5'
        ActiveRecord::Type::Boolean.new.type_cast_from_user(@create_roles_and_permissions)
      else
        ActiveRecord::Type::Boolean.new.cast(@create_roles_and_permissions)
      end
    end
def create_roles_and_permissions
      if Rails.version < '5'
        ActiveRecord::Type::Boolean.new.type_cast_from_user(@create_roles_and_permissions)
      else
        ActiveRecord::Type::Boolean.new.cast(@create_roles_and_permissions)
      end
    end
def load_product(product_id)
   Chi::Licensing::Product.where(id: product_id).first
 end