if (clientConfigurations.isEmpty()) configurations.addAll(Arrays.asList("conf/client_application.inc.xml", "client_application.xml"));
else configurations.addAll(clientConfigurations);
final ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(configurations.toArray(new String[0]));
final EventBus rootEventBus = applicationContext.getBean(EventBus.class);
final EntryPoint entryPoint = applicationContext.getBean(EntryPoint.class);
final PHistory history = applicationContext.getBean(PHistory.class);
ponySession.setRootEventBus(rootEventBus);
ponySession.setHistory(history);