List attributes = new ArrayList();
String subProcessNameResolved = (String) JbpmExpressionEvaluator.evaluate(subProcessName, executionContext);
if (log.isDebugEnabled()) {
log.debug("SubProcessName after eval: " + subProcessNameResolved);
}
attributes.add(new FlyweightAttribute("name", subProcessNameResolved));
Element subProcessElement = new DefaultElement("sub-process");
subProcessElement.setAttributes(attributes);
usedSubProcessDefinition = subProcessResolver.findSubProcess(subProcessElement);
}