protected ValidationFailure validateEntity(ObjEntity entity) {
String name = entity.getName();
if (entity.isGeneric()) {
return new SimpleValidationFailure(name, "Generic class");
}
ValidationFailure emptyClass = BeanValidationFailure.validateNotEmpty(
name,
"className",