"Source : " + source + " against : " + regex.pattern() + " matches" :
"XPath expression : " + xpath + " evaluates to true") +
" - executing then sequence with key : " + thenKey);
}
Mediator seq = synCtx.getSequence(thenKey);
if (seq != null) {
result = seq.mediate(synCtx);
} else {
handleException("Couldn't find the referred then sequence with key : "
+ thenKey, synCtx);
}
} else {
if (synLog.isTraceOrDebugEnabled()) {
synLog.traceOrDebug((xpath == null ?
"Source : " + source + " against : " + regex.pattern() + " matches" :
"XPath expression : " + xpath + " evaluates to true") +
" - executing child mediators");
}
result = super.mediate(synCtx);
}
} else {
if (elseKey != null) {
if (synLog.isTraceOrDebugEnabled()) {
synLog.traceOrDebug((xpath == null ?
"Source : " + source + " against : " + regex.pattern() + " does not match" :
"XPath expression : " + xpath + " evaluates to false") +
" - executing the else sequence with key : " + elseKey);
}
Mediator elseSeq = synCtx.getSequence(elseKey);
if (elseSeq != null) {
result = elseSeq.mediate(synCtx);
} else {
handleException("Couldn't find the referred else sequence with key : "
+ elseKey, synCtx);
}