code: private void addConsumerToRegisteredMonitorMap(
      MonitoredConsumer mc,
      ArrayList monitorList,
      Map registeredMonitors)
    {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
          SibTr.entry(
            tc,
            "addConsumerToRegisteredMonitorMap",
            new Object[] { registeredMonitors,
                           mc,
                           monitorList });
      // Finally, add this consumer to the appropriate places in the registered
      // consumer monitors tables
      Iterator i = monitorList.iterator();
      while (i.hasNext())
      {
        String tExpr = (String)i.next();
  
        // Get the next monitor
        RegisteredCallbacks rMonitor = (RegisteredCallbacks)registeredMonitors.get(tExpr);
  
        // Retrieve the current list of consumers
        ArrayList matchingConsumerList = rMonitor.getMatchingConsumers();
  
        // There is no need to drive any callbacks as we are placing subscriptions
        // in the registrations table that correspond to existing subscriptions.
        // So simply add the new subscription to the list.
        matchingConsumerList.add(mc);
      }
  
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        SibTr.exit(tc, "addConsumerToRegisteredMonitorMap");
  
    }
docs: Method addConsumerToRegisteredMonitorMap
  
  This method adds a new consumer to the appropriate places in a monitor
  map.
  
  @param mc
  @param monitorList
  @param registeredMonitors