profilerName = jmxSupport.getObjectName(jmxSupport.getDomainName(muleContext) + ":" + PROFILER_OBJECT_NAME);
// unregister existing YourKit MBean first if required
unregisterMBeansIfNecessary();
mBeanServer.registerMBean(new YourKitProfilerService(), profilerName);
}
catch(Exception e)
{
throw new InitialisationException(CoreMessages.failedToStart(this.getName()), e, this);
}