catch (Exception e)
{
throw new WSTrustException("Failed to marshall SAMLV2 assertion", e);
}
SecurityToken token = new StandardSecurityToken(context.getRequestSecurityToken().getTokenType().toString(),
assertionElement, assertionID);
context.setSecurityToken(token);
// set the SAML assertion attached reference.
KeyIdentifierType keyIdentifier = WSTrustUtil.createKeyIdentifier(SAMLUtil.SAML2_VALUE_TYPE, "#" + assertionID);