code: public void registerMemoryNotifications(NotificationListener notificationListener, Object handback)
     {
  	NotificationEmitter emitter = (NotificationEmitter) this.getMemory();
  	emitter.addNotificationListener(notificationListener, null, handback);
  	
     }
docs: Allows a listener to be registered within the MemoryMXBean as a notification listener
  usage threshold exceeded notification - for notifying that the memory usage of a memory pool is increased
  and has reached or exceeded its usage threshold value.
  
  collection usage threshold exceeded notification - for notifying that the memory usage
  of a memory pool is greater than or equal to its collection usage threshold
  after the Java virtual machine has expended effort in recycling unused objects in that memory pool.
  
  The notification emitted is a Notification instance whose user data is set to a CompositeData that
  represents a MemoryNotificationInfo object containing information about the memory pool when the
  notification was constructed. The CompositeData contains the attributes as described in MemoryNotificationInfo.
  
  @param notificationListener listener to be alerted
  @param handback object to be passed back to notification listener when notification occurs