if (MethodType.XPATH.equals(mType)) {
XPathProcessor proc = new XPathProcessor(message);
correlationId = proc.getCorrelationID(cAssertion, message);
} else if (MethodType.CALLBACK.equals(mType)){
CorrelationIDCallbackHandler handler = (CorrelationIDCallbackHandler) message
.get(CorrelationIDFeature.CORRELATION_ID_CALLBACK_HANDLER);
if (null == handler) {
handler = (CorrelationIDCallbackHandler) message
.getContextualProperty(CorrelationIDFeature.CORRELATION_ID_CALLBACK_HANDLER);
}
if (handler != null)
correlationId = handler.getCorrelationId();
}
// Generate new ID if it was not set in callback or
// request
if (null == correlationId) {
correlationId = ContextUtils.generateUUID();