class WilmaBootstrap {

    public void bootstrap() {
        ClassPathXmlApplicationContext applicationContext = null;
        try {
            applicationContext = getApplicationContext();
            WilmaEngine wilmaEngine = applicationContext.getBean(WilmaEngine.class);
            WilmaServiceListener wilmaServiceListener = applicationContext.getBean(WilmaServiceListener.class);
            wilmaEngine.addListener(wilmaServiceListener, MoreExecutors.directExecutor());
            wilmaEngine.start();
        } catch (Exception e) {
            logErrorByTypeOfException(e);
            closeApplicationContext(applicationContext);
        }
    }

    public  WilmaBootstrap(final ApplicationContextFactory applicationContextFactory);

}