}
private WorkflowResult fetchWFResultFromDR(String job_key) throws Exception{
//2. get the data registry manager and fetch the digital object containing the wfResult
URI drManagerID = DataRegistryFactory.createDataRegistryIdFromName("/experiment-files/executions/").normalize();
DigitalObjectManager drExpResults = DataRegistryFactory.getDataRegistry().getDigitalObjectManager(drManagerID);
URI wfResultstorageURI =new URI(drManagerID.getScheme(),drManagerID.getAuthority(),drManagerID.getPath()+"/"+job_key+"/wfResult-id-"+job_key+".xml",null,null).normalize();
DigitalObject doWFResult = drExpResults.retrieve(wfResultstorageURI);
if(doWFResult.getContent()==null){
throw new Exception("No workflow xml content available.");
}
//3. now read the stream into a String and unmarshall the WorkflwoResult object
StringBuilder sb = new StringBuilder();