try {
final Document doc = WSTrustUtil.newDocument();
//javax.xml.bind.Marshaller marshaller = getContext().createMarshaller();
final JAXBElement<RequestSecurityTokenResponseCollectionType> rstElement =
(new ObjectFactory()).createRequestSecurityTokenResponseCollection((RequestSecurityTokenResponseCollectionType)rstrCollection);
getMarshaller().marshal(rstElement, doc);
return doc.getDocumentElement();
} catch (JAXBException ex) {
log.log(Level.SEVERE,
LogStringsMessages.WST_0012_JAXB_EX_TO_ELEMENT(), ex);