public Writer getWrapped() {
        return (getWriter() instanceof JavaWriterWriter) ? ((JavaWriterWriter)getWriter()).getWriter() : getWriter();
    }
Returns the input writer as-is if it is an XMLWriter instance. Returns new XMLWriter(writer) otherwise
vespajlib/src/main/java/com/yahoo/text/XMLWriter.java