* @throws NotCompliantMBeanException
*/
private void registerProcessorMBean(String baseObjectName, String processorName) throws NotCompliantMBeanException {
String processorMBeanName = baseObjectName + "processor=" + processorName;
MailProcessor processor = mailProcessor.getProcessor(processorName);
ProcessorDetail processorDetail;
// check if the processor is an instance of ProcessorDetail. If not create a wrapper around it. This will give us not all
// statistics but at least a few of them
if (processor instanceof ProcessorDetail) {