public RoleProperties create(Integer languageId, Integer contentTypeDefinitionId, RolePropertiesVO rolePropertiesVO, Database db) throws ConstraintException, SystemException, Exception
{
Language language = LanguageController.getController().getLanguageWithId(languageId, db);
ContentTypeDefinition contentTypeDefinition = ContentTypeDefinitionController.getController().getContentTypeDefinitionWithId(contentTypeDefinitionId, db);
RoleProperties roleProperties = new RolePropertiesImpl();
roleProperties.setLanguage((LanguageImpl)language);
roleProperties.setContentTypeDefinition((ContentTypeDefinition)contentTypeDefinition);
roleProperties.setValueObject(rolePropertiesVO);
db.create(roleProperties);
return roleProperties;
}