}
Data dereferenceExternalResource (final String uri,XMLCryptoContext context) throws URIReferenceException, XWSSecurityException {
URIDereferencer resolver = WSSPolicyConsumerImpl.getInstance ().getDefaultResolver ();
URIReference uriRef = null;
FilterProcessingContext filterContext =(FilterProcessingContext) context.get (MessageConstants.WSS_PROCESSING_CONTEXT);
SecurableSoapMessage secureMsg = filterContext.getSecurableSoapMessage ();
final Attr uriAttr = secureMsg.getSOAPMessage ().getSOAPPart ().createAttribute ("uri");
uriAttr.setNodeValue (uri);
uriRef = new DOMURIReference (){