if (null == seq) {
// TODO: better error handling
org.objectweb.celtix.ws.addressing.EndpointReferenceType to = null;
try {
EndpointReferenceType acksTo = null;
RelatesToType relatesTo = null;
if (isServerSide()) {
AddressingPropertiesImpl inMaps = ContextUtils
.retrieveMAPs(context, false, false);
inMaps.exposeAs(VersionTransformer.Names200408.WSA_NAMESPACE_NAME);
acksTo = RMUtils.createReference(inMaps.getTo().getValue());
to = inMaps.getReplyTo();
getServant().setUnattachedIdentifier(inSeqId);
relatesTo = ContextUtils.WSA_OBJECT_FACTORY.createRelatesToType();
DestinationSequence inSeq = getDestination().getSequence(inSeqId);
relatesTo.setValue(inSeq != null ? inSeq.getCorrelationID() : null);
} else {
acksTo = VersionTransformer.convert(maps.getReplyTo());
// for oneways
if (Names.WSA_NONE_ADDRESS.equals(acksTo.getAddress().getValue())) {
acksTo = RMUtils.createReference(Names.WSA_ANONYMOUS_ADDRESS);