private void createBeanForStatistics() {
// Adding a Bean for statistical access using jmanager
try {
MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
// Unique identification of MBeans
Statistics statBean = Statistics.getStatistics();
// Uniquely identify the MBeans and register them with the platform
// MBeanServer
ObjectName statName = new ObjectName("marauroad:name=Statistics");
mbs.registerMBean(statBean, statName);
logger.debug("Statistics bean registered.");