}
if (!metadata.isPresent()) {
return handler.printJobPending(httpServletResponse, referenceId);
} else if (metadata.get() instanceof SuccessfulPrintJob) {
SuccessfulPrintJob successfulPrintJob = (SuccessfulPrintJob) metadata.get();
URI pdfURI = successfulPrintJob.getURI();
ReportLoader loader = null;
for (ReportLoader reportLoader : this.reportLoaders) {
if (reportLoader.accepts(pdfURI)) {
loader = reportLoader;