if(registeredNotification!=null) {
registeredNotification.setRemoteEventListener(null);
registeredNotification.setEventIndex(eventManager.getLastRecordedDate());
} else {
logger.warn("Unable to disable delivery for unknown registration ID");
throw new UnknownEventCollectorRegistration("Unable to disable delivery for unknown registration ID");
}
}