}
} catch (XMLStreamException ex) {
logger.log(Level.SEVERE, LogStringsMessages.WSS_1715_ERROR_CANONICALIZING_BODY(), ex);
throw new XWSSecurityException("Error occurred while canonicalizing BodyTag"+ex);
}
StreamingPayLoadDigester digester = new StreamingPayLoadDigester(ref,message,canonicalizer,payLoad);
return XMLStreamReaderFactory.createFilteredXMLStreamReader(message,digester);
}