public Query newQuery(Criteria crt) {
RequestContext requestContext = RequestContext.extract(null);
try {
ResourceProcessor processor = new ProcessorFactory().interrogate(newProcessingContext(requestContext), info.getUrl(), info.newCredentials());
return processor.createQuery(context, crt);
} catch (IOException ex) {
context.onIterationException(ex);
return null;
} finally {
requestContext.onExecutionPhaseCompleted();