private Repository registerStatistics(Repository repository) {
if (repository instanceof RepositoryImpl) {
try {
RepositoryImpl repositoryImpl = (RepositoryImpl) repository;
StatisticsMBeanImpl mbean = new StatisticsMBeanImpl(repositoryImpl);
Dictionary<String, Object> properties = new Hashtable<String, Object>();
String mbeanName = StatisticsMBeanImpl.getMBeanName(repositoryImpl);
properties.put("jmx.objectname", mbeanName);
properties.put(Constants.SERVICE_VENDOR, "Apache");
statisticsServices.put(