@Override public void initialize() { final OverdueNotifier myself = this; final NotificationQueueHandler notificationQueueHandler = new NotificationQueueHandler() { @Override public void handleReadyNotification(final NotificationEvent notificationKey, final DateTime eventDate, final UUID userToken, final Long accountRecordId, final Long tenantRecordId) { myself.handleReadyNotification(notificationKey, eventDate, userToken, accountRecordId, tenantRecordId); } }; try { overdueQueue = notificationQueueService.createNotificationQueue(DefaultOverdueService.OVERDUE_SERVICE_NAME, getQueueName(), notificationQueueHandler); } catch (NotificationQueueAlreadyExists e) { throw new RuntimeException(e); } }