public Object find(FinderCrudService service,
Map<String, Object> filterParams, Map<String, Object> sortParams,
Map<String, Object> returnParams) {
// TODO find a way to make use of IdBasedService, because that's obviously not the case here
QueryStatement statement = service.find().matching(queryTranscripter.buildQuery(service, filterParams));
statement = statement.sortBy(sortingTranscripter.buildSorting(service, sortParams));
return returnTranscriptor.buildReturn(statement, returnParams);
}
/**
* Create an error representation and returns it