if (processor instanceof Delayer) {
answer = new ManagedDelayer(context, (Delayer) processor, definition);
} else if (processor instanceof Throttler) {
answer = new ManagedThrottler(context, (Throttler) processor, definition);
} else if (processor instanceof SendProcessor) {
answer = new ManagedSendProcessor(context, (SendProcessor) processor, definition);
}
if (answer == null) {
// fallback to a generic processor
answer = new ManagedProcessor(context, processor, definition);