if (schemaDAO.find(schemaTO.getName(), attrUtil.schemaClass()) != null) {
throw new EntityExistsException(attrUtil.schemaClass().getSimpleName()
+ " '" + schemaTO.getName() + "'");
}
AbstractSchema schema = attrUtil.newSchema();
binder.create(schemaTO, schema);
schema = schemaDAO.save(schema);
auditManager.audit(Category.schema, SchemaSubCategory.create, Result.success,
"Successfully created schema: " + kind + "/" + schema.getName());