} else {
if (log.isDebugEnabled()) {
log.debug("Synchronously mediating using the sequence " +
"named : " + sequenceRef);
}
returnValue = refSequence.mediate(synCtx);
}
} else {
handleException("Couldn't find the sequence named : " + sequenceRef);
}
} else if (endpoint != null) {