}
if (property.getEntity().getName().equals(AccountingFact.ENTITY_NAME)) {
if (property.getName().equals(AccountingFact.PROPERTY_RECORDID2)) {
return ModelProvider.getInstance().getEntity(DebtPayment.ENTITY_NAME);
}
final AccountingFact accountingFact = (AccountingFact) obObject;
final Entity entity = ModelProvider.getInstance().getEntity(
accountingFact.getTable().getName());
if (entity == null) {
throw new OBException("No entity for table with name "
+ accountingFact.getTable().getName());
}
return entity;
}
throw new OBException("Property " + property + " is not a primitive reference");
}