InputStream is = message.getContent(InputStream.class);
if (is != null) {
// TODO: where does encoding constant go?
String encoding = (String) message.get(ENCODING);
reader = StaxUtil.createReader(is, encoding);
reader = new ExtendedXMLStreamReader(reader);
} else {
return;
}
}
reader.nextTag();