*/
protected String resolveTransitionElements(final List<?> transitionElements, final String nextAttr, final boolean partOfDecision) {
final String exitStatus = batchContext.getExitStatus();
for (final Object e : transitionElements) { //end, fail. next, stop
if (e instanceof Next) {
final Next next = (Next) e;
if (matches(exitStatus, next.getOn())) {
return next.getTo();
}
} else if (e instanceof End) {
final End end = (End) e;
if (matches(exitStatus, end.getOn())) {
setOuterContextStatus(batchContext.getOuterContexts(), BatchStatus.COMPLETED,