code: public static CheckedSocket check(SocketFace socket)
          throws SocketException
      {
          if (socket instanceof CheckedSocket) {
              return (CheckedSocket)socket;
          }
          else {
              return new CheckedSocket(socket);
          }
      }
docs: Returns a new CheckedSocket instance only if the given socket isn't
  already one.