anchor.diff:  :WaitLoop
           for /f "tokens=*" %%i in ('FINDSTR /C:"The resource manager with 4 local nodes created on" %SCHED_OUT%') do set RM_URL_STR=%%i
           IF NOT ["%RM_URL_STR%"]==[""] (
  -                SET RM_URL=%RM_URL_STR:~28%
  +                SET RM_URL=%RM_URL_STR:~50%
           )
   
           for /f "tokens=*" %%i in ('FINDSTR /C:"The scheduler created on" %SCHED_OUT%') do set SCHED_URL_STR=%%i
  
positive.code: set CMD=-A %REST_WAR% -p %PORT%
  
  IF %DO_SCHED% == true (
      IF NOT [%SCHED_URL%]==[] (
          echo Scheduler URL: %SCHED_URL%
      ) ELSE (
          echo Error: Could not determine Scheduler URL
  
negative.code: @echo off
  SETLOCAL
  
  call init.bat scheduler-log4j-server
  
  set JPS="%JAVA_HOME%\bin\jps.exe"
  IF not exist %JPS% (
          echo Error: can't find jps tool: %JPS%
          goto :eof
  )
  
  call :find_process_by_cmd SchedulerStarter
  IF NOT [%_result%]==[] (
          echo Error: scheduler is already running on this machine
          goto :eof
  )
  
  set SCHED_JVM_X_OPTS=-Xms128m -Xmx2048m
  set SCHED_JVM_D_OPTS=
  