public Element toElement(RequestSecurityTokenResponseCollection rstrCollection) {
try {
Document doc = WSTrustUtil.newDocument();
// javax.xml.bind.Marshaller marshaller = getContext(WSTrustVersion.WS_TRUST_13).createMarshaller();
JAXBElement<RequestSecurityTokenResponseCollectionType> rstrElement =
(new ObjectFactory()).createRequestSecurityTokenResponseCollection((RequestSecurityTokenResponseCollectionType)rstrCollection);
getMarshaller().marshal(rstrElement, doc);
return doc.getDocumentElement();
} catch (Exception ex) {
throw new RuntimeException(ex.getMessage(), ex);