final Statistic[] statistics = getStatisticsFromImplRaw(customStatsImpl);
// translate the names to be the ones we expose in MBeanInfo
for(int i = 0; i < statistics.length; ++i) {
final Statistic origStatistic = statistics[i];
final MapStatistic m = new MapStatisticImpl(origStatistic);
final String convertedName = originalToDerivedStatisticName(origStatistic.getName());
if (! convertedName.equals(origStatistic.getName()))
m.setName(convertedName);
final Class<? extends Statistic> theClass =
StatisticFactory.getInterface(origStatistic);
assert(theClass != null);
// this will create one which implements the requisite interfaces
statistics[ i ] = StatisticFactory.create(theClass, m.asMap());
assert(theClass.isAssignableFrom(statistics[ i ].getClass()));
}
return(statistics);
} catch (Exception e) {