if (virSchemaDAO.find(virSchemaTO.getName(), attrUtil.virSchemaClass()) != null) {
throw new EntityExistsException(attrUtil.schemaClass().getSimpleName()
+ " '" + virSchemaTO.getName() + "'");
}
AbstractVirSchema virSchema = virSchemaDAO.save(binder.create(virSchemaTO, attrUtil.newVirSchema()));
auditManager.audit(Category.schema, SchemaSubCategory.createVirtual, Result.success,
"Successfully created virtual schema: " + kind + "/" + virSchema.getName());
response.setStatus(HttpServletResponse.SC_CREATED);