if (configuration.isJmxEnabled()) {
try {
MBeanServer mbeanServer = ManagementFactory.getPlatformMBeanServer();
ObjectName name = new ObjectName("com.github.dandelion", "type", DandelionRuntime.class.getSimpleName());
if (!mbeanServer.isRegistered(name)) {
mbeanServer.registerMBean(new DandelionRuntime(this, filterConfig), name);
}
}
catch (final JMException e) {
LOG.error("An exception occured while registering the DandelionRuntimeMBean", e);
}