if (original.equals("")) return original;
StringWriter outputWriter = new StringWriter();
ReWriteVisitor visitor = new ReWriteVisitor(outputWriter, original);
ParserConfiguration configuration = new ParserConfiguration(0, true, false);
new Parser(null).parseRewriter("", new ByteArrayInputStream(original.getBytes()), configuration).accept(visitor);
visitor.flushStream();
return outputWriter.getBuffer().toString();
}