code: public static List<TraceEvent> filterCCMEvents(List<TraceEvent> data) throws Exception
     {
        List<TraceEvent> result = new ArrayList<TraceEvent>();
  
        for (TraceEvent te : data)
        {
           if (te.getType() == TraceEvent.PUSH_CCM_CONTEXT ||
               te.getType() == TraceEvent.POP_CCM_CONTEXT)
           {
              result.add(te);
           }
        }
  
        return result;
     }
docs: Filter the CCM events
  @param data The data
  @return The filtered events
  @exception Exception If an error occurs