{
SOAPEnvelope soapEnvelope = soapMessage.getSOAPPart().getEnvelope();
RMConstants wsrmConstants = provider.getConstants();
// Add xmlns:wsrm declaration
soapEnvelope.addNamespaceDeclaration(wsrmConstants.getPrefix(), wsrmConstants.getNamespaceURI());
// write required wsrm:TerminateSequenceResponse element
QName terminateSequenceResponseQName = wsrmConstants.getTerminateSequenceResponseQName();
SOAPElement terminateSequenceResponseElement = soapEnvelope.getBody().addChildElement(terminateSequenceResponseQName);