SecurityHeaderElement she = resolveToken(referenceValue, xc);
if (she != null && she instanceof SAMLAssertion) {
SAMLAssertion samlAssertion = (SAMLAssertion) she;
returnKey = samlAssertion.getKey();
if (strId != null && strId.length() > 0) {
Data data = new SSEData((SecurityElement) samlAssertion, false, context.getNamespaceContext());
context.getElementCache().put(strId, data);
}
} else {
HashMap sentSamlKeys = (HashMap) context.getExtraneousProperty(MessageConstants.STORED_SAML_KEYS);
if (sentSamlKeys != null) {