Buggy code:
public class CommandProcessor { public static void process ( String command , final PrintStream out , final Scanner scan , boolean telnet ) throws IOException { CommandProcessor . se = false ; String [ ] cargs = ( command . contains ( "<seq2seq4repair_space>" ) ) ? command . substring ( ( ( command . indexOf ( "<seq2seq4repair_space>" ) ) + 1 ) ) . split ( "<seq2seq4repair_space>" ) : new String [ 0 ] ; String targs = ( command . contains ( "<seq2seq4repair_space>" ) ) ? command . substring ( ( ( command . indexOf ( "<seq2seq4repair_space>" ) ) + 1 ) ) : "" ; command = ( command . contains ( "<seq2seq4repair_space>" ) ) ? command . substring ( 0 , command . indexOf ( "<seq2seq4repair_space>" ) ) : command ; if ( ( command . equals ( "exit" ) ) || ( command . equals ( "stop" ) ) ) { patchBus . preExit ( ) ; if ( ( JavaWebServer . mainConfig ) != null ) { mainConfig . save ( ) ; } System . exit ( 0 ) ; } else if ( command . equals ( "reload" ) ) { try { mainConfig . load ( ) ; <START_BUG> patchBus . preExit ( ) ; <END_BUG> } catch ( Exception e ) { e . printStackTrace ( out ) ; } out . println ( "Loaded<seq2seq4repair_space>Config!<seq2seq4repair_space>Some<seq2seq4repair_space>entries<seq2seq4repair_space>will<seq2seq4repair_space>require<seq2seq4repair_space>a<seq2seq4repair_space>restart." ) ; } else if ( command . equals ( "restart" ) ) { try { patchBus . preExit ( ) ; if ( ( JavaWebServer . mainConfig ) != null ) { mainConfig . save ( ) ; } if ( System . getProperty ( "os.name" ) . contains ( "nux" ) ) { Runtime . getRuntime ( ) . exec ( ( "sh<seq2seq4repair_space>" + ( fileManager . getBaseFile ( "restart.sh" ) ) ) ) ; } else if ( System . getProperty ( "os.name" ) . toLowerCase ( ) . contains ( "windows" ) ) { Runtime . getRuntime ( ) . exec ( fileManager . getBaseFile ( "restart.bat" ) . toString ( ) ) ; } } catch ( Exception e ) { e . printStackTrace ( out ) ; } out . println ( "Restarting..." ) ; } else if ( command . equals ( "flushcache" ) ) { try { fileManager . clearCache ( ) ; } catch ( Exception e ) { e . printStackTrace ( out ) ; } out . println ( "Cache<seq2seq4repair_space>Flushed!<seq2seq4repair_space>This<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>necessary<seq2seq4repair_space>for<seq2seq4repair_space>php<seq2seq4repair_space>files,<seq2seq4repair_space>and<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>work<seq2seq4repair_space>for<seq2seq4repair_space>.class<seq2seq4repair_space>files(restart<seq2seq4repair_space>jws<seq2seq4repair_space>for<seq2seq4repair_space>those,<seq2seq4repair_space>but<seq2seq4repair_space>HTMLCache<seq2seq4repair_space>is<seq2seq4repair_space>cleared)." ) ; } else if ( command . equals ( "jhtml" ) ) { if ( ( ( cargs . length ) != 2 ) && ( ( cargs . length ) != 1 ) ) { out . println ( "Invalid<seq2seq4repair_space>arguments.<seq2seq4repair_space>(input,<seq2seq4repair_space>output[optional])" ) ; return ; } try { File sc2 = null ; Scanner scan2 = new Scanner ( new FileInputStream ( ( sc2 = new File ( fileManager . getHTDocs ( ) , cargs [ 0 ] ) ) ) ) ; PrintStream ps ; File temp = null ; if ( ( cargs . length ) == 2 ) { ps = new PrintStream ( new FileOutputStream ( ( temp = new File ( fileManager . getHTSrc ( ) , cargs [ 1 ] ) ) ) ) ; } else { ps = new PrintStream ( new FileOutputStream ( ( temp = new File ( fileManager . getHTSrc ( ) , ( ( cargs [ 0 ] . substring ( 0 , cargs [ 0 ] . indexOf ( "." ) ) ) + ".java" ) ) ) ) ) ; } ps . println ( "import<seq2seq4repair_space>java.io.PrintStream;" ) ; ps . println ( "import<seq2seq4repair_space>com.javaprophet.javawebserver.networking.packets.RequestPacket;" ) ; ps . println ( "import<seq2seq4repair_space>com.javaprophet.javawebserver.networking.packets.ResponsePacket;" ) ; ps . println ( "import<seq2seq4repair_space>com.javaprophet.javawebserver.plugins.javaloader.JavaLoaderStream;" ) ; ps . println ( ) ; ps . println ( ( ( "public<seq2seq4repair_space>class<seq2seq4repair_space>" + ( ( cargs . length ) == 3 ? temp . getName ( ) . substring ( 0 , temp . getName ( ) . indexOf ( "." ) ) : sc2 . getName ( ) . substring ( 0 , sc2 . getName ( ) . indexOf ( "." ) ) ) ) + "<seq2seq4repair_space>extends<seq2seq4repair_space>JavaLoaderPrint<seq2seq4repair_space>{" ) ) ; ps . println ( "<seq2seq4repair_space>public<seq2seq4repair_space>void<seq2seq4repair_space>generate(PrintStream<seq2seq4repair_space>out,<seq2seq4repair_space>ResponsePacket<seq2seq4repair_space>response,<seq2seq4repair_space>RequestPacket<seq2seq4repair_space>request)<seq2seq4repair_space>{" ) ; while ( scan2 . hasNextLine ( ) ) { String line = scan2 . nextLine ( ) . trim ( ) ; ps . println ( ( ( ( "<seq2seq4repair_space>" + "out.println(\"" ) + ( line . replace ( "\\" , "\\\\" ) . replace ( "\"" , "\\\"" ) ) ) + "\");" ) ) ; } ps . println ( "<seq2seq4repair_space>}" ) ; ps . println ( "}" ) ; ps . flush ( ) ; ps . close ( ) ; scan2 . close ( ) ; } catch ( IOException e ) { Logger . log ( e . getMessage ( ) ) ; } out . println ( "JHTML<seq2seq4repair_space>completed." ) ; } else if ( command . equals ( "jcomp" ) ) { boolean all = ( cargs . length ) < 1 ; String sep = ( System . getProperty ( "os.name" ) . toLowerCase ( ) . contains ( "windows" ) ) ? ";" : ":" ; String cp = ( ( ( ( ( ( ( fileManager . getBaseFile ( "jws.jar" ) . toString ( ) ) + sep ) + ( fileManager . getHTDocs ( ) . toString ( ) ) ) + sep ) + ( fileManager . getHTSrc ( ) . toString ( ) ) ) + sep ) + ( lib . toString ( ) ) ) + sep ; for ( File f : lib . listFiles ( ) ) { if ( ( ! ( f . isDirectory ( ) ) ) && ( f . getName ( ) . endsWith ( ".jar" ) ) ) { cp += ( f . toString ( ) ) + sep ; } }

Fix:
patchBus . reload ( ) ;