code: public static Socket getCurrentSocket() {
          ConnectionHandler handler = connectionMap.get(Thread.currentThread());
          return (handler == null ? null : handler.getSocket());
      }
docs: Get the current Socket for this call.
  Only works in the main thread call.
  
  @return Socket which started the Delegator Thread