public static StepExecutionResult wrapDispatcherException(final DispatcherException dispatcherResult) {
        final StepExecutionResultImpl result = new NodeDispatchStepExecutorExceptionResult(dispatcherResult,
                                                                                           Reason.NodeDispatchFailure,
                                                                                           dispatcherResult.getMessage());

        return result;
    }
public static StepExecutionResult wrapDispatcherException ( final DispatcherException dispatcherResult ) { final StepExecutionResultImpl result = new NodeDispatchStepExecutorExceptionResult ( dispatcherResult , Reason . NodeDispatchFailure , dispatcherResult . getMessage ( ) ) ; return result ; }
Return a StepExecutionResult based on the DispatcherResult, that can later be extracted.
@param dispatcherResult exception result
@return step result