code: @Override
      public boolean isLocalJobExecution(WSJobExecution jobExecution) {
          return jobExecution.getServerId() == null
                 || jobExecution.getRestUrl() == null // If server ID or rest URL were never set, we can treat as local
                 || getBatchRestUrl().equals(jobExecution.getRestUrl())
                 || (BatchRestUrlUnavailable.equals(jobExecution.getRestUrl())
                     && getServerId().equals(jobExecution.getServerId()));
  
      }
docs: Note: This method compares the jobexecution's REST url with this server's REST url.
  If they are different, and the jobexecution's REST url is equal to the
  BatchRestUrlUnavailable constant, that means the jobexecution was created
  prior to batchManagement-1.0 being enabled.  In that case, this method
  compares the jobexecution's serverId with this server's serverId.  The serverId
  is slightly less reliable since it depends on configuration... but then again,
  so does the REST url... so neither is that reliable but the REST url feels
  more reliable so we prefer that one.
  
  @return true if the given jobexecution ran (or is running) on this server.