@Override
    public void start() {
        LOGGER.info("Starting Stroom");

        if (enabled.get()) {
            // Do this async so that we don't delay starting the web app up
            CompletableFuture.runAsync(() -> {
                final LogExecutionTime logExecutionTime = new LogExecutionTime();
                LOGGER.info("Starting up in background");
                doStart();
                LOGGER.info("Started in {}", logExecutionTime);
            });
        }
    }
Called when the application context is initialised.
stroom-lifecycle/stroom-lifecycle-impl/src/main/java/stroom/lifecycle/impl/LifecycleService.java