if (true) {
if (System.getProperty("_DisableClasspathReorder") == null) {
    public static void main(String argv[], Class applicationClass) {    	_wasERXApplicationMainInvoked = true;    	String cp = System.getProperty("java.class.path");    	String parts[] = cp.split(":");    	String normalLibs = "";    	String systemLibs = "";    	allFrameworks = new HashSet();    	for (int i = 0; i < parts.length; i++) {    		String jar = parts[i];    		// all patched frameworks here    		if(jar.matches(".*?Library[/\\\\]Frameworks[/\\\\]Java(Foundation|EOControl|EOAccess|WebObjects).*")) {    			systemLibs += jar + ":";			}			else {				normalLibs += jar + ":";			}			String bundle = jar.replaceAll(".*?[/\\\\](\\w+)\\.framework.*", "$1");			if (bundle.matches("^\\w+$") && !"JavaVM".equals(bundle)) {				allFrameworks.add(bundle);			}		}		if (systemLibs.length() > 1) {			systemLibs = systemLibs.substring(0, systemLibs.length() - 1);		}		if (normalLibs.length() > 1) {			normalLibs = normalLibs.substring(0, normalLibs.length() - 1);		}		cp = normalLibs + ":" + systemLibs;		// AK: this is pretty experimental for now. The classpath reordering		// should actually be done in a WOLips bootstrap because as this time all		// the static inits of WO app have already happened (which include NSMutableArray and _NSThreadSaveSet)				if (true) {			System.setProperty("java.class.path", cp);			ClassLoader loader = AppClassLoader.getAppClassLoader();			Thread.currentThread().setContextClassLoader(loader);		}		Class arrayClass = NSMutableArray.class;		try {			Field f = arrayClass.getField("ERX_MARKER");		}		catch (NoSuchFieldException e) {			System.err.println("No ERX_MARKER field in NSMutableArray found. \nThis means your class path is incorrect. Adjust it so that ERExtensions come before JavaFoundation.");			System.exit(1);		}		catch (Exception e) {			e.printStackTrace();		}		NSNotificationCenter.defaultCenter().addObserver(ERXApplication.class, 				new NSSelector("bundleDidLoad", new Class[] { NSNotification.class }), "NSBundleDidLoadNotification", null);		ERXConfigurationManager.defaultManager().setCommandLineArguments(argv);		ERXFrameworkPrincipal.setUpFrameworkPrincipalClass(ERXExtensions.class);		WOApplication.main(argv, applicationClass);	}