try { return getInputFactory().createXMLStreamReader(content); } catch (XMLStreamException e) {  InputStream is = new SourceTransformer().toStreamSource(content).getInputStream(); return getInputFactory().createXMLStreamReader(is); }
return transformer.toXMLStreamReader(content);
    public XMLStreamReader createStreamReader(NormalizedMessage message) throws XMLStreamException, TransformerException {        Source content = message.getContent();        try {            return getInputFactory().createXMLStreamReader(content);        } catch (XMLStreamException e) {            // Such features can be not supported, depending on the source type            InputStream is = new SourceTransformer().toStreamSource(content).getInputStream();            return getInputFactory().createXMLStreamReader(is);        }    }