LOG.debug("createPersistenceQueryFor: " + query.getDescription());
}
final ObjectSpecification noSpec = specFor(query);
if (query instanceof QueryFindAllInstances) {
final QueryFindAllInstances<?> queryFindAllInstances = (QueryFindAllInstances<?>) query;
return new PersistenceQueryFindAllInstances(noSpec, queryFindAllInstances.getStart(), queryFindAllInstances.getCount());
}
if (query instanceof QueryFindByTitle) {
final QueryFindByTitle<?> queryByTitle = (QueryFindByTitle<?>) query;
final String title = queryByTitle.getTitle();
return new PersistenceQueryFindByTitle(noSpec, title, queryByTitle.getStart(), queryByTitle.getCount());