SourceSequence seq = source.getCurrent(inSeqId);
if (null == seq) {
// TODO: better error handling
org.apache.cxf.ws.addressing.EndpointReferenceType to = null;
try {
EndpointReferenceType acksTo = null;
RelatesToType relatesTo = null;
if (RMContextUtils.isServerSide(message)) {
AddressingPropertiesImpl inMaps = RMContextUtils.retrieveMAPs(message, false, false);
inMaps.exposeAs(VersionTransformer.Names200408.WSA_NAMESPACE_NAME);
acksTo = RMUtils.createReference2004(inMaps.getTo().getValue());
to = inMaps.getReplyTo();
// getServant().setUnattachedIdentifier(inSeqId);
relatesTo = (new org.apache.cxf.ws.addressing.ObjectFactory()).createRelatesToType();
Destination destination = getDestination(message);
DestinationSequence inSeq = destination.getSequence(inSeqId);
relatesTo.setValue(inSeq != null ? inSeq.getCorrelationID() : null);
} else {
to = RMUtils.createReference(maps.getTo().getValue());
acksTo = VersionTransformer.convert(maps.getReplyTo());
if (!RMContextUtils.isServerSide(message)
&& RMConstants.getNoneAddress().equals(acksTo.getAddress().getValue())) {
org.apache.cxf.transport.Destination dest = message.getExchange()
.getConduit().getBackChannel();
if (null == dest) {
acksTo = RMUtils.createAnonymousReference2004();
} else {