private Map getSubWorkflowVariables(Workflow wf) { try { return JsonUtils.unmarshal((StringUtils.unescape((String) wf.getVariable()))); } catch (Exception ex) { throw new ServiceException("Unable to parse the workflow variables.", ex); } }