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