code: protected void handleConnection(Socket connection) throws IOException
      {
          if (log.isDebugEnabled()) log.debug("Handle " + connection);
          InputStream in = connection.getInputStream();
          OutputStream out = connection.getOutputStream();
  
          handleConnection(in, out);
          out.flush();
  
          in = null;
          out = null;
          connection.close();
      }
docs: Handle new connection. If access is required to the actual socket, override this method
  instead of handleConnection(InputStream in,OutputStream out). The default implementation of
  this just calls handleConnection(InputStream in,OutputStream out).