/** * Method to send notification through the publisher adding timestamp and * instance information. * @param event Event to send. * @throws IOException when an I/O exception occurs. */ private void sendNotification(Event event) throws IOException { event.setTimestamp(System.currentTimeMillis()); event.setInstance(instance); publisher.publish(event); }