anchor.diff:         GOTO :LOOP
       )
       IF "!CARG!"=="-status" (
  -       for /F "TOKENS=1" %%G in ('%JAVA_HOME%\bin\jps.exe -lvV ^| find /I "opendaylight"') do (
  +       for /F "TOKENS=1" %%G in ('""!JAVA_H!" -lvV ^| find /I "opendaylight""') do (
              set PID=%%G
          )
          if "!PID!" NEQ "" (
  
positive.code:        GOTO :LOOP
      )
      IF "!CARG:~0,2!"=="-D" (
         SET extraJVMOpts=%extraJVMOpts% !CARG!
         SHIFT
         GOTO :LOOP
      )
      IF "!CARG:~0,2!"=="-X" (
         SET extraJVMOpts=%extraJVMOpts% !CARG!
         SHIFT
         GOTO :LOOP
      )
      IF "!CARG!"=="-help" (
          ECHO "Usage: %0 [-jmx] [-jmxport <num>] [-debug] [-debugsuspend] [-debugport <num>] [-start] [-consoleport <num>]] [-stop] [-status] [-console] [-help] [<other args will automatically be used for the JVM>]"
          ECHO Note: Enclose any JVM or System properties within double quotes.
          GOTO :EOF
      )
  
  
negative.code: 
  IF "%debugEnabled%" NEQ "" (
      REM ECHO "DEBUG enabled"
      SET extraJVMOpts=!extraJVMOpts! -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=%debugport%
  )
  
  IF "%debugSuspended%" NEQ "" (
      REM ECHO "DEBUG enabled suspended"
      SET extraJVMOpts=!extraJVMOpts! -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=%debugport%
  )
  
  IF "%jvmMaxMemory%"=="" (
      SET jvmMaxMemory=-Xmx1G
      ECHO Setting maximum memory to 1G.
  )
  
  SET extraJVMOpts=!extraJVMOpts!  %jvmMaxMemory%
  
  IF "%jmxEnabled%" NEQ "" (
      REM ECHO "JMX enabled "
      SET extraJVMOpts=!extraJVMOpts! -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=%jmxport% -Dcom.sun.management.jmxremote
  )
  IF "%startEnabled%" NEQ "" (
      REM ECHO "START enabled "
  