public synchronized JmxRegistry getJmxRegistry() {
if (jmxRegistry == null) {
jmxRegistry = JmxRegistryFactory.createJmxRegistry();
jmxRegistry.registerMBean(new JRatInfo(), null);
jmxRegistry.registerMBean(new LoggingManager(), null);
jmxRegistry.registerMBean(new Benchmark(), null);
}
return jmxRegistry;
}