protected Endpoint<Exchange> createEndpoint(String uri, String remaining, Map parameters) throws Exception {
LoggingLevel level = getLoggingLevel(parameters);
Object value = parameters.remove("groupSize");
Logger logger;
if (value != null) {
logger = new ThroughputLogger(remaining, level, ObjectConverter.toInteger(value));
}
else {
logger = new Logger(remaining, level);
}
return new ProcessorEndpoint(uri, this, logger);
}