private static StatisticsType findTheStatisticType(EventData event) {
   StatisticsType statisticsType = null;
   if ((event.getMessageId() != null) && event.getSystemStatistics() == null) {
     statisticsType = StatisticsType.ACTIVITY_STATS;
   } else if (event.getMessageId() == null && event.getSystemStatistics() != null) {
     statisticsType = StatisticsType.SERVICE_STATS;
   } else if ((event.getMessageId() != null) && event.getSystemStatistics() != null) {
     statisticsType = StatisticsType.ACTIVITY_SERVICE_STATS;
   }
   return statisticsType;
 }
 private static void addStatisticEventData(EventData event, List<Object> eventData) {
   SystemStatistics systemStatistics = event.getSystemStatistics();
   eventData.add(systemStatistics.getCurrentInvocationResponseTime());
   eventData.add(systemStatistics.getCurrentInvocationRequestCount());
   eventData.add(systemStatistics.getCurrentInvocationResponseCount());
   eventData.add(systemStatistics.getCurrentInvocationFaultCount());
 }