Source:
<code>public static void main(String... args) throws TTransportException, MalformedObjectNameException, InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException { UpgradeTasks.runLatest(); MemoryUsage heap = ManagementFactory.getMemoryMXBean() .getHeapMemoryUsage(); if(heap.getInit() < MIN_HEAP_SIZE) { System.err.println("Cannot initialize Concourse Server with " + "a heap smaller than " + MIN_HEAP_SIZE + " bytes"); System.exit(127); } final ConcourseServer server = ConcourseServer.create(); GlobalState.compareAndsetSystemId(); <START> if(GlobalState.SYSTEM_UUID.equals(null)) { <END> System.err.println( "Concourse is in inconsistent state because id in buffer and database directory is inconsistent"); System.exit(1); } Thread serverThread = new Thread(new Runnable() { @Override public void run() { try { CommandLine.displayWelcomeBanner(); server.start(); } catch (TTransportException e) { e.printStackTrace(); System.exit(-1); } } }, "main"); serverThread.start(); final Thread shutdownThread = new Thread(new Runnable() { @Override public void run() { try { ServerSocket socket = new ServerSocket(SHUTDOWN_PORT); socket.accept(); Logger.info("Shutdown request received"); server.stop(); socket.close(); } catch (Exception e) { e.printStackTrace(); } } }, "Shutdown"); shutdownThread.setDaemon(true); shutdownThread.start(); new Thread(new Runnable() { @Override public void run() { NaturalLanguage.parseMicros("now"); } }).start(); Runtime.getRuntime().addShutdownHook(new Thread() { @Override public void run() { ShutdownRunner.main(); try { shutdownThread.join(); } catch (InterruptedException e) { e.printStackTrace(); } } }); }</code><technical_language>==</technical_language>

Target:
public static void main(String... args) throws TTransportException, MalformedObjectNameException, InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException { UpgradeTasks.runLatest(); MemoryUsage heap = ManagementFactory.getMemoryMXBean() .getHeapMemoryUsage(); if(heap.getInit() < MIN_HEAP_SIZE) { System.err.println("Cannot initialize Concourse Server with " + "a heap smaller than " + MIN_HEAP_SIZE + " bytes"); System.exit(127); } final ConcourseServer server = ConcourseServer.create(); if(GlobalState.SYSTEM_ID == null) { throw new IllegalStateException( "Concourse is in inconsistent state because " + "the System ID in the buffer and database directories are different"); } Thread serverThread = new Thread(new Runnable() { @Override public void run() { try { CommandLine.displayWelcomeBanner(); System.out.println("System ID: " + GlobalState.SYSTEM_ID); server.start(); } catch (TTransportException e) { e.printStackTrace(); System.exit(-1); } } }, "main"); serverThread.start(); final Thread shutdownThread = new Thread(new Runnable() { @Override public void run() { try { ServerSocket socket = new ServerSocket(SHUTDOWN_PORT); socket.accept(); Logger.info("Shutdown request received"); server.stop(); socket.close(); } catch (Exception e) { e.printStackTrace(); } } }, "Shutdown"); shutdownThread.setDaemon(true); shutdownThread.start(); new Thread(new Runnable() { @Override public void run() { NaturalLanguage.parseMicros("now"); } }).start(); Runtime.getRuntime().addShutdownHook(new Thread() { @Override public void run() { ShutdownRunner.main(); try { shutdownThread.join(); } catch (InterruptedException e) { e.printStackTrace(); } } }); }