if (acksTo == null)
throw new OMException(SandeshaMessageHelper.getMessage(
SandeshaMessageKeys.createSeqNullAcksTo));
SOAPBody soapBody = (SOAPBody) bodyElement;
OMFactory factory = bodyElement.getOMFactory();
OMNamespace rmNamespace = factory.createOMNamespace(rmNamespaceValue,Sandesha2Constants.WSRM_COMMON.NS_PREFIX_RM);
OMElement createSequenceElement = factory.createOMElement(
Sandesha2Constants.WSRM_COMMON.CREATE_SEQUENCE, rmNamespace);
acksTo.toOMElement(createSequenceElement);
if (sequenceOffer != null) {
sequenceOffer.toOMElement(createSequenceElement);
}
if (expires != null) {
expires.toOMElement(createSequenceElement);
}
if(securityTokenReference != null) {
createSequenceElement.addChild(securityTokenReference);
}
soapBody.addChild(createSequenceElement);
return soapBody;
}