new CommonsLogFactory(settings), new DefaultMessageFactory());
logFactory, new DefaultMessageFactory());  assertSessionIds();
    public void run() {        try {            HashMap defaults = new HashMap();            defaults.put("ConnectionType", "acceptor");            defaults.put("SocketAcceptPort", "9877");            defaults.put("StartTime", "00:00:00");            defaults.put("EndTime", "00:00:00");            defaults.put("SenderCompID", "ISLD");            defaults.put("TargetCompID", "TW");            if (resetOnDisconnect) {                defaults.put("ResetOnDisconnect", "Y");            }            defaults.put("FileStorePath", "output/data/server");            defaults.put("ValidateUserDefinedFields", "Y");            settings.set(defaults);            if (fixVersions.contains("fix40")) {                acceptFixVersion(FixVersions.BEGINSTRING_FIX40);            }            if (fixVersions.contains("fix41")) {                acceptFixVersion(FixVersions.BEGINSTRING_FIX41);            }            if (fixVersions.contains("fix42")) {                acceptFixVersion(FixVersions.BEGINSTRING_FIX42);            }            if (fixVersions.contains("fix43")) {                acceptFixVersion(FixVersions.BEGINSTRING_FIX43);            }            if (fixVersions.contains("fix44")) {                acceptFixVersion(FixVersions.BEGINSTRING_FIX44);            }            ATApplication application = new ATApplication();            MessageStoreFactory factory = usingMemoryStore                    ? (MessageStoreFactory) new MemoryStoreFactory()                    : new FileStoreFactory(settings);            acceptor = new ThreadedSocketAcceptor(application, factory, settings,                    new CommonsLogFactory(settings), new DefaultMessageFactory());            acceptor.start();            //acceptor.waitForInitialization();            initializationLatch.countDown();            synchronized (application) {                try {                    application.wait();                } catch (InterruptedException e1) {                    try {                        acceptor.stop(true);                    } catch (RuntimeException e) {                        e.printStackTrace();                    }                    log.info("server exiting");                }            }        } catch (Throwable e) {            log.error("error in AT server", e);        }    }