class StandaloneControllerApplicationConfig implements ServerApplicationConfig {

    @Override
    public Set<Class<?>> getAnnotatedEndpointClasses(Set<Class<?>> scanned) {
        if(ControllerUtils.useEmbeddedController() == false) {
            LOGGER.info("Standalone controller in use, removing Web Socket endpoints");
            scanned.remove(WebSocketKieServerControllerImpl.class);
            scanned.remove(WebSocketKieServerControllerNotification.class);
            scanned.remove(WebSocketKieServerMgmtControllerImpl.class);
        }
        return scanned;
    }

}