* @return the constructed {@code RequestedReferenceType} instance.
*/
public static RequestedReferenceType createRequestedReference(KeyIdentifierType keyIdentifier,
Map<QName, String> attributes)
{
SecurityTokenReferenceType securityTokenReference = new SecurityTokenReferenceType();
securityTokenReference.getAny().add(
new org.jboss.identity.federation.ws.wss.secext.ObjectFactory().createKeyIdentifier(keyIdentifier));
securityTokenReference.getOtherAttributes().putAll(attributes);
RequestedReferenceType reference = new RequestedReferenceType();
reference.setSecurityTokenReference(securityTokenReference);
return reference;
}