}
public static RelationDescription getRelatedEntity(
AuditConfiguration verCfg, String entityName,
String propertyName) throws AuditException {
RelationDescription relationDesc = verCfg.getEntCfg().getRelationDescription( entityName, propertyName );
if ( relationDesc == null ) {
return null;
}
if ( relationDesc.getRelationType() == RelationType.TO_ONE ) {
return relationDesc;
}
throw new AuditException(
"This type of relation (" + entityName + "." + propertyName +