destinationEntities.add(collection);
modelMeta.setParents(destinationEntities, this);
destinationEntities.setSourceEntities(this);
} else {
String error = "There is no domain model.";
throw new OrderException(error);
}
} catch (Exception e) {
log.error("Error in OrderedEntities.getEntities: " + entitiesClass
+ " === " + e.getMessage());
throw new OrderException(e.getMessage());
}
return (IOrderedEntities<T>) destinationEntities;
}