throws PlanetsException {
try {
if(workflowTemplateQName==null){
String e = "WorkflowRegistry: please specify the workflowTemplate QName to retrieve its binary";
log.debug(e);
throw new PlanetsException(e);
}
return this.dataManager.retrieveBinary(
new URI(wfTemplateDir+"/"+RegistryUtils.convertQNameToRegistryPathPURI(workflowTemplateQName)));
} catch (Exception e) {
//SOAPException, URISyntaxException
log.error("Problems finding "+workflowTemplateQName+ "template at URI path: "+wfTemplateDir+"/"+RegistryUtils.convertQNameToRegistryPathPURI(workflowTemplateQName),e);
throw new PlanetsException("No "+workflowTemplateQName+" template found at: "+wfTemplateDir+"/"+RegistryUtils.convertQNameToRegistryPathPURI(workflowTemplateQName));
}
}