NSNotificationCenter.defaultCenter().postNotification(new NSNotification(ApplicationDidCreateNotification, this));
    public ERXApplication() {    	super();       	if (allFrameworks.size() > 0) {    		throw new RuntimeException("ERXExtensions have not been initialized. Please report the classpath and the rest of the bundles to the Wonder mailing list: " +    				"\nRemaining" + allFrameworks  + "\n" + System.getProperty("java.class.path"));    	}       	if ("JavaFoundation".equals(NSBundle.mainBundle().name())) {    		throw new RuntimeException("Your main bundle is \"JavaFoundation\".  You are not launching this WO application properly.  If you are using Eclipse, most likely you launched your WOA as a \"Java Application\" instead of a \"WO Application\".");    	}    	if (! ERXConfigurationManager.defaultManager().isDeployedAsServlet()  &&              ! _wasERXApplicationMainInvoked) {            _displayMainMethodWarning();        }                installPatches();        lowMemBufferSize = ERXProperties.intForKeyWithDefault("er.extensions.ERXApplication.lowMemBufferSize", 0);        if(lowMemBufferSize > 0) {        	lowMemBuffer = new byte[lowMemBufferSize];        }        registerRequestHandler(new ERXDirectActionRequestHandler(), directActionRequestHandlerKey());        if (isDirectConnectEnabled()) {        	registerRequestHandler(new ERXStaticResourceRequestHandler(), "_wr_");        }         Long timestampLag = Long.getLong("EOEditingContextDefaultFetchTimestampLag");        if (timestampLag != null)            EOEditingContext.setDefaultFetchTimestampLag(timestampLag.longValue());        String defaultMessageEncoding = System.getProperty("er.extensions.ERXApplication.DefaultMessageEncoding");        if (defaultMessageEncoding != null) {            log.debug("Setting WOMessage default encoding to \"" + defaultMessageEncoding + "\"");            WOMessage.setDefaultEncoding(defaultMessageEncoding);        }        // Configure the WOStatistics CLFF logging since it can't be controled by a property, grrr.        configureStatisticsLogging();        NSNotificationCenter.defaultCenter().addObserver(this,                                                         new NSSelector("finishInitialization",                                                                        ERXConstant.NotificationClassArray),                                                         WOApplication.ApplicationWillFinishLaunchingNotification,                                                         null);                NSNotificationCenter.defaultCenter().addObserver(this,                                                         new NSSelector("didFinishLaunching",                                                                        ERXConstant.NotificationClassArray),                                                         WOApplication.ApplicationDidFinishLaunchingNotification,                                                         null);        ERXEC.setUseUnlocker(useEditingContextUnlocker());        ERXEC.setTraceOpenEditingContextLocks(traceOpenEditingContextLocks());        // Signal handling support        if (ERXGracefulShutdown.isEnabled()) {            ERXGracefulShutdown.installHandler();        }        // AK: this makes it possible to retrieve the creating instance from an NSData PK.         // it should still be unique, as one host can only have one running instance to a port        EOTemporaryGlobalID._setProcessIdentificationBytesFromInt(port().intValue());    }