private IdeaWatchdog getWatchdog() throws RemoteException, NotBoundException {
      Remote remote = myRegistry.lookup(IdeaWatchdog.BINDING_NAME);
      if (remote instanceof IdeaWatchdog) {
        return (IdeaWatchdog)remote;
      }
      else {
        return RemoteUtil.castToLocal(remote, IdeaWatchdog.class);
      }
    }
private IdeaWatchdog getWatchdog()