@PostConstruct private void initialize() { initializing = true; try { // as well, which means it needs to be reset first initImage(); serverThreadPool.execute(this::createGraph); } catch (IOException e) { logger.error("Failed to create black and white image from the map", e); initializing = false; } clientServerEventBus.register(this); } @Subscribe