docs: boolean registerEndpoint(String addr, Endpoint endpoint)
      {
          endpointsSync.lock();
  
          Endpoint inserted = null;
          try {
              inserted = endpoints.put(addr, endpoint);
          }
          finally {
              endpointsSync.unlock();
          }
          if (inserted != null) {
              return false;
          }
          return true;
      }