public SyncopeConsoleSession(final Request request) { super(request); clientFactory = SyncopeWebApplication.get().newClientFactory(); anonymousClient = clientFactory. create(new AnonymousAuthenticationHandler( SyncopeWebApplication.get().getAnonymousUser(), SyncopeWebApplication.get().getAnonymousKey())); platformInfo = anonymousClient.getService(SyncopeService.class).platform(); systemInfo = anonymousClient.getService(SyncopeService.class).system(); executor = new ThreadPoolTaskExecutor(); executor.setWaitForTasksToCompleteOnShutdown(false); executor.setCorePoolSize(SyncopeWebApplication.get().getCorePoolSize()); executor.setMaxPoolSize(SyncopeWebApplication.get().getMaxPoolSize()); executor.setQueueCapacity(SyncopeWebApplication.get().getQueueCapacity()); executor.initialize(); }