AttachmentSet attachments = msg.getAttachments();
Source modifiedPayload = lm.getModifiedPayload();
if(modifiedPayload == null){
packet.setMessage(new EmptyMessageImpl(headers,attachments,binding.getSOAPVersion()));
} else {
packet.setMessage(new PayloadSourceMessage(headers,modifiedPayload, attachments, binding.getSOAPVersion()));
}
}
lm = null;
}