WSTrustConstants.BASE_NAMESPACE);
List<Object> theList = response.getRequestedSecurityToken().getAny();
for (Object securityToken : theList) {
if (securityToken instanceof AssertionType) {
AssertionType assertion = (AssertionType) securityToken;
SAMLAssertionWriter samlAssertionWriter = new SAMLAssertionWriter(this.writer);
samlAssertionWriter.write(assertion);
} else if (securityToken instanceof Element) {
StaxUtil.writeDOMElement(this.writer, (Element) securityToken);
} else
throw logger.writerUnknownTypeError(securityToken.getClass().getName());
}