Document securedDocument = doOutboundSecurityWithWSS4J(sourceDocument, action, properties);
XPathExpression xPathExpression = getXPath("/soap:Envelope/soap:Body");
Element bodyElement = (Element) xPathExpression.evaluate(securedDocument, XPathConstants.NODE);
Element soapEnvElement = (Element) bodyElement.getParentNode();
soapEnvElement.removeChild(bodyElement);
Element newBody = securedDocument.createElementNS(WSSConstants.NS_SOAP11, WSSConstants.TAG_soap_Body_LocalName);
Element operationElement = securedDocument.createElementNS("http://schemas.xmlsoap.org/wsdl/", "definitions");
newBody.appendChild(operationElement);
soapEnvElement.appendChild(newBody);