};
InputStream inputStream = BTCChinaClient.class.getResourceAsStream("client.cfg");
SessionSettings settings = new SessionSettings(inputStream);
MessageStoreFactory storeFactory = new FileStoreFactory(settings);
LogFactory logFactory = new FileLogFactory(settings);
MessageFactory messageFactory = new DefaultMessageFactory();
Initiator initiator = new SocketInitiator(app, storeFactory, settings, logFactory, messageFactory);
initiator.block();
}