JSONObject metadata = registry.getJSON(RESULT_METADATA + referenceId);
String appId = metadata.optString(JSON_APP, null);
JSONObject accessJSON = metadata.getJSONObject(JSON_ACCESS_ASSERTION);
final AccessAssertion accessAssertion = persister.unmarshal(accessJSON);
PrintJobStatus report;
if (!metadata.has(JSON_COMPLETION_DATE)) {
report = PendingPrintJob.load(metadata, referenceId, appId, accessAssertion);
} else {