code: static boolean hasMoreApplicationEvents(List<TraceEvent> events, int index)
     {
        if (index < 0 || index >= events.size())
           return false;
  
        for (int j = index; j < events.size(); j++)
        {
           TraceEvent te = events.get(j);
           if (te.getType() == TraceEvent.GET_CONNECTION ||
               te.getType() == TraceEvent.RETURN_CONNECTION)
              return true;
        }
  
        return false;
     }
docs: Has more application events
  @param events The events
  @param index The index
  @return True if more application events after the index