public String[] getStatisticNames() {
   Stats stats = delegate.getStats();
   if (stats != null) {
     return stats.getStatisticNames();
   } else {
     return null;
   }
 }
  public Statistic[] getStatistics() {
    Stats stats = delegate.getStats();
    if (stats == null) {
      return null;
    }

    Statistic[] statArray = stats.getStatistics();
    boolean isSerializable = checkSerializability(statArray);
    if (isSerializable) {
      final Statistic[] hackedArray = StatisticWorkaround.populateDescriptions(statArray);
      return hackedArray;
    } else return null;
  }