Hmm, XMLInputFactory.newFactory("javax.xml.stream.XMLInputFactory", XmlParserHelper.class.getClassLoader()) does not work out of the box.