private PostCommitEntity createDescriptor(String entityName) { EntityResolver entityResolver = getEntityResolver(); ClassDescriptor classDescriptor = entityResolver.getClassDescriptor(entityName); Auditable annotation = classDescriptor.getObjectClass().getAnnotation(Auditable.class); if (annotation == null) { return BLOCKED_ENTITY; } ObjEntity entity = entityResolver.getObjEntity(entityName); return new DefaultPostCommitEntity( entity, annotation.ignoredProperties(), annotation.confidential()); }