public static void prettyPrintXML(final Reader reader, final Writer writer) {
        try {
            final SAXParser parser = PARSER_FACTORY.newSAXParser();
            final XMLReader xmlReader = parser.getXMLReader();
            prettyPrintXML(xmlReader, new InputSource(reader), writer);

        } catch (final ParserConfigurationException
                       | SAXException e) {
            throw new RuntimeException(e);
        }
    }
Convert a java type into a xml name E.g. XMLType = "xmlType", String =
"string", StringBIG = "StringBIG"
stroom-util/src/main/java/stroom/util/xml/XMLUtil.java