protected Statistic[] getStatisticsFromImpl(CustomStatsImpl customStatsImpl) {
try {
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);