private LinkingDiagnosticProducer producer;
public DiagnosticConsumerBasedMessageAcceptor(IDiagnosticConsumer consumer) {
if(consumer == null)
throw new IllegalArgumentException("Consumer can not be null");
producer = new LinkingDiagnosticProducer(consumer);
}