throw new WorkflowException(e);
return null;
    public WorkflowDescriptor getWorkflowDescriptor(String workflowName) throws WorkflowException {        try {            return wf.getWorkflowDescriptor(workflowName);        } catch (RemoteException e) {            log.error("Error getting descriptor", e);            throw new WorkflowException(e);        }    }