}
public Object fromOMElement(OMElement bodyElement) throws OMException {
if (bodyElement == null || !(bodyElement instanceof SOAPBody))
throw new OMException(
"Cant get create sequnce response from a non-body element");
SOAPBody SOAPBody = (SOAPBody) bodyElement;
OMElement createSeqResponsePart = SOAPBody
.getFirstChildWithName(new QName(Sandesha2Constants.WSRM.NS_URI_RM,
Sandesha2Constants.WSRM.CREATE_SEQUENCE_RESPONSE));
if (createSeqResponsePart == null)
throw new OMException(
"The passed element does not contain a create seqence response part");
createSequenceResponseElement = factory.createOMElement(
Sandesha2Constants.WSRM.CREATE_SEQUENCE_RESPONSE,
createSeqResNoNamespace);