code: public static boolean isRed(TraceEvent te)
     {
        if (te.getType() == TraceEvent.CLEAR_CONNECTION ||
            te.getType() == TraceEvent.CLEAR_CONNECTION_LISTENER)
           return true;
  
        return false;
     }
docs: Is red
  @param te The event
  @return The value