code: public static TraceEvent getVersion(List<TraceEvent> events)
     {
        for (TraceEvent te : events)
        {
           if (te.getType() == TraceEvent.VERSION)
              return te;
        }
  
        return null;
     }
docs: Get the version
  @param events The events
  @return The version information