@Override
        protected void appendText(String text, SimpleTextAttributes attributes) throws IOException {
          w.append(escapeNonBreakingSymbols(text));
        }
@Override
        protected void appendText(String text, SimpleTextAttributes attributes)