docs: public void send(String data) throws IOException {
          String printStr = null;
          if (logger.isDebugEnabled()) {
              printStr = data;
              printStr = printStr.replaceAll("\\r", "\\\\r");
              printStr = printStr.replaceAll("\\n", "\\\\n");
          }
  
          synchronized(this) {
              logger.debug("Sending to writer: " + printStr);
              Writer writer = pair.getWriter();
              writer.write(data);
              writer.flush();
          }
      }