final Map<String, ? extends NodeStepResult> resultMap;
if (NodeDispatchStepExecutor.isWrappedDispatcherResult(dispatcherStepResult)) {
DispatcherResult dispatcherResult = NodeDispatchStepExecutor.extractDispatcherResult(dispatcherStepResult);
resultMap = dispatcherResult.getResults();
} else if (NodeDispatchStepExecutor.isWrappedDispatcherException(dispatcherStepResult)) {
DispatcherException exception
= NodeDispatchStepExecutor.extractDispatcherException(dispatcherStepResult);
HashMap<String, NodeStepResult> stringNodeStepResultHashMap = new HashMap<String,
NodeStepResult>();
resultMap = stringNodeStepResultHashMap;
NodeStepException nodeStepException = exception.getNodeStepException();
if (null != nodeStepException && null != exception.getNode()) {
NodeStepResult nodeExecutorResult = nodeStepResultFromNodeStepException(
exception.getNode(),
nodeStepException
);
stringNodeStepResultHashMap.put(
nodeStepException.getNodeName(),
nodeExecutorResult