public static void addNotificationHandler(String service,NotificationHandler handler) throws AlreadyRegisteredException {
  if (notificationHandlers.containsKey(service)) {
    throw new AlreadyRegisteredException(PLLBundle.getString("alreadyRegistered") + service);
  }
  notificationHandlers.put(service,handler);
}

public static void addNotificationHandler ( String service , NotificationHandler handler ) throws AlreadyRegisteredException { if ( notificationHandlers . containsKey ( service ) ) { throw new AlreadyRegisteredException ( PLLBundle . getString ( "alreadyRegistered" ) + service ) ; } notificationHandlers . put ( service , handler ) ; }
adds a notification handler for a service . this handler is used by the platform low level servlet to pass notifications for processing .
