anchor.diff:      rem Use the defaults if JAVA_DEBUG_OPTS was not set
       if "%JAVA_DEBUG_OPTS%" == "" set JAVA_DEBUG_OPTS=%DEFAULT_JAVA_DEBUG_OPTS%
   
  -    set JAVA_OPTS="%JAVA_DEBUG_OPTS% %JAVA_OPTS%"
  +    set JAVA_OPTS=%JAVA_DEBUG_OPTS% %JAVA_OPTS%
       call :warn Enabling Java debug options: %JAVA_DEBUG_OPTS%
   :KARAF_DEBUG_END
   
  
positive.code: )
  set DEFAULT_JAVA_OPTS=%JAVA_MODE% -Xms%JAVA_MIN_MEM% -Xmx%JAVA_MAX_MEM% -Dderby.system.home="%KARAF_DATA%\derby" -Dderby.storage.fileSyncTransactionLog=true -Dcom.sun.management.jmxremote  -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass
  
  if "%JAVA_OPTS%" == "" set JAVA_OPTS=%DEFAULT_JAVA_OPTS%
  
  if "%EXTRA_JAVA_OPTS%" == "" goto :KARAF_EXTRA_JAVA_OPTS_END
      set JAVA_OPTS="%JAVA_OPTS% %EXTRA_JAVA_OPTS%"
  :KARAF_EXTRA_JAVA_OPTS_END
  
  if "%KARAF_DEBUG%" == "" goto :KARAF_DEBUG_END
  
negative.code: 
  :EXECUTE_DEBUG
      if "%JAVA_DEBUG_OPTS%" == "" set JAVA_DEBUG_OPTS=%DEFAULT_JAVA_DEBUG_OPTS%
      set JAVA_OPTS=%JAVA_DEBUG_OPTS% %JAVA_OPTS%
      shift
      goto :RUN_LOOP
  
  