class CDILauncher {

    public static void main(final String[] args)
    {
        final SeContainerInitializer initializer = SeContainerInitializer.newInstance();
        final Config config = configure(initializer, args);
        try (final SeContainer container = initializer.initialize())
        {
            if (config.main != null)
            {
                executeMain(config, container);
            }
            // else the app can use other ways to execute code like @PreDestroy of a startup bean
        }
    }

    private  CDILauncher();

}