code: public static Map<String, List<TraceEvent>> tocConnections(List<TraceEvent> data) throws Exception
     {
        Map<String, List<TraceEvent>> result = new TreeMap<String, List<TraceEvent>>();
  
        for (TraceEvent te : data)
        {
           if (te.getType() == TraceEvent.GET_CONNECTION)
           {
              List<TraceEvent> l = result.get(te.getPayload1());
  
              if (l == null)
                 l = new ArrayList<TraceEvent>();
  
              l.add(te);
  
              result.put(te.getPayload1(), l);
           }
        }
  
        return result;
     }
docs: ToC: Connections
  @param data The data
  @return The events
  @exception Exception If an error occurs