public UserProperties create(Integer languageId, Integer contentTypeDefinitionId, UserPropertiesVO userPropertiesVO, Database db) throws ConstraintException, SystemException, Exception
{
Language language = LanguageController.getController().getLanguageWithId(languageId, db);
ContentTypeDefinition contentTypeDefinition = ContentTypeDefinitionController.getController().getContentTypeDefinitionWithId(contentTypeDefinitionId, db);
UserProperties userProperties = new UserPropertiesImpl();
userProperties.setLanguage((LanguageImpl)language);
userProperties.setContentTypeDefinition((ContentTypeDefinition)contentTypeDefinition);
userProperties.setValueObject(userPropertiesVO);
db.create(userProperties);
return userProperties;
}