ByteArrayOutputStream osRes = new ByteArrayOutputStream();
XMLUtils.outputDOM(docRes, osRes, true);
//creates an STSManager and handover server-config.wsdd parameters in a hash table
log.debug("STSServerHandler: calling STSManager");
STSManager stsMgr =
new STSManager(this.getOptions());
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);