if (synCtx.getConfiguration().getProxyService((String) synCtx.getProperty(
SynapseConstants.PROXY_SERVICE)).getTargetOutSequence() != null) {
String sequenceName = synCtx.getConfiguration().getProxyService((String) synCtx.
getProperty(SynapseConstants.PROXY_SERVICE)).getTargetOutSequence();
Mediator outSequence = synCtx.getSequence(sequenceName);
if (outSequence != null) {
if (log.isDebugEnabled()) {
log.debug("Using the sequence named " + sequenceName
+ " for the outgoing message mediation of the proxy service "
+ synCtx.getProperty(SynapseConstants.PROXY_SERVICE));
}
outSequence.mediate(synCtx);
} else {
log.error("Unable to find the out-sequence " +
"specified by the name " + sequenceName);
throw new SynapseException("Unable to find the " +
"out-sequence specified by the name " + sequenceName);