docRes = stsMgr.handleRequest(docReq, docRes);
// log.debug("STSServerHandler: STSManager has done the job");
ByteArrayOutputStream os = new ByteArrayOutputStream();
XMLUtils.outputDOM(docRes, os, true);
//modify the current message
sPartRes.setCurrentMessage(os.toByteArray(), SOAPPart.FORM_BYTES);
//set current message to the context
//msgCntxt.setCurrentMessage(sPartRes.getMessage());
//msgCntxt.setPastPivot(true);
//msgCntxt.setPastPivot(true);
msgCntxt.setCurrentMessage(sPartRes.getMessage());