if (log.isDebugEnabled()) { try { c.descriptor = load(c.wfName); } catch (FactoryException e) { throw e; } catch (Exception e) { throw new FactoryException("Error loading workflow", e); }
try { c.descriptor = load(c.wfName); } catch (FactoryException e) { throw e; } catch (Exception e) { throw new FactoryException("Error loading workflow", e);
    public WorkflowDescriptor getWorkflow(String name) throws FactoryException {        WfConfig c = (WfConfig) workflows.get(name);        if (c == null) {            throw new RuntimeException("Unknown workflow name \"" + name + "\"");        }        if (log.isDebugEnabled()) {            log.debug("getWorkflow " + name + " descriptor=" + c.descriptor);        }        if (c.descriptor != null) {            if (reload) {                //@todo check timestamp                try {                    c.descriptor = load(c.wfName);                } catch (FactoryException e) {                    throw e;                } catch (Exception e) {                    throw new FactoryException("Error reloading workflow", e);                }            }        } else {            if (log.isDebugEnabled()) {                try {                    c.descriptor = load(c.wfName);                } catch (FactoryException e) {                    throw e;                } catch (Exception e) {                    throw new FactoryException("Error loading workflow", e);                }            }        }        return c.descriptor;    }