private static void preventMultipleInstances(String[] args) {
		try {
			serverSocket = ServerSocketFactory.getDefault().createServerSocket();
			serverSocket.bind(new InetSocketAddress(PORT_LAUNCH));
		}
		catch (Exception e) {
			boolean b = true;
			if (b) {
				Socket socket = null;
				PrintWriter out = null;
				try {
					socket = SocketFactory.getDefault().createSocket("localhost", PORT_LAUNCH);
					out = new PrintWriter(socket.getOutputStream(), true);
					String str = "";
					if (args != null && args.length >= 2) {
						str += args[1];
					}
					if (str.length() > 1) {
						out.println(str);
					}
					else {
						out.println(getStaticRoot() + "index.cml");
					}
				}
				catch (Exception e2) {
					e2.printStackTrace();
				}
				finally {
					if (out != null)
						out.close();
					if (socket != null) {
						try {
							socket.close();
						}
						catch (IOException ex) {
						}
					}
				}
			}
			else {
				try {
					EventQueue.invokeAndWait(new Runnable() {
						public void run() {
							JOptionPane.showMessageDialog(null, NAME + " is already running.");
						}
					});
				}
				catch (Exception ex) {
					ex.printStackTrace();
				}
			}
			System.exit(0);
		}
	}