private void registerForBus() { try { busService.getBus().register(listener); } catch (final EventBusException e) { log.error("Problem encountered registering OverdueListener on the Event Bus", e); } }
@LifecycleHandlerType(LifecycleLevel.STOP_SERVICE) public void stop() { try { busService.getBus().unregister(listener); } catch (final EventBusException e) { log.error("Problem encountered registering OverdueListener on the Event Bus", e); } notifier.stop(); }