synchronized IRemoteApp getApp (String appID) throws Exception { if (app != null) return app; try { File propfile = new File (serverProps); File hopHome = new File (propfile.getParent()); SystemProperties sysProps = new SystemProperties (propfile.getAbsolutePath()); app = new Application (appName, hopHome, sysProps, null); app.start (); } catch (Exception x) { System.err.println ("Error starting Application "+appName+": "+x); x.printStackTrace (); }
IRemoteApp getApp (String appID) { if (app == null) createApp ();
    synchronized IRemoteApp getApp (String appID) throws Exception {	if (app != null)	    return app;	try {	    File propfile = new File (serverProps);	    File hopHome = new File (propfile.getParent());	    SystemProperties sysProps = new SystemProperties (propfile.getAbsolutePath());	    app = new Application (appName, hopHome, sysProps, null);	    app.start ();	} catch (Exception x) {	    System.err.println ("Error starting Application "+appName+": "+x);	    x.printStackTrace ();	}	return app;    }