throw new OBException("No entity found for treetype " + treeNode.getTree().getTypeArea());
}
return entity;
}
if (property.getEntity().getName().equals(Alert.ENTITY_NAME)) {
final Alert alert = (Alert) obObject;
final Table table = alert.getAlertRule().getTab().getTable();
final Entity entity = ModelProvider.getInstance().getEntity(table.getName());
if (entity == null) {
throw new OBException("No entity for table with name " + table.getName());
}
return entity;