class ControllerExtension implements Extension {

    public <T> void processStandaloneController(@WithAnnotations({StandaloneController.class}) @Observes ProcessAnnotatedType<T> event) {
        LOGGER.info("Processing standalone controller class: {}", event.getAnnotatedType().getJavaClass());
        StandaloneController a = event.getAnnotatedType().getJavaClass().getAnnotation(StandaloneController.class);
        if (a != null && ControllerUtils.useEmbeddedController()) {
            removeControllerClassFromCDIContext(event);
        }
    }

}