Packet packet = toPacket(tsData, requestPacket);
if (!clientSideResponse) {
// Add relatesTo. See https://java.net/jira/browse/WSIT-1669
packet.getMessage().getHeaders().add(new RelatesToHeader(
addressingVersion.relatesToTag,
AddressingUtils.getMessageID(requestPacket.getMessage().getHeaders(), addressingVersion, soapVersion)));
}
return packet;