protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
LoggingLevel level = getLoggingLevel(parameters);
Integer groupSize = getAndRemoveParameter(parameters, "groupSize", Integer.class);
Long groupInterval = getAndRemoveParameter(parameters, "groupInterval", Long.class);
CamelLogger camelLogger = new CamelLogger(remaining, level);
Processor logger;
if (groupSize != null) {
logger = new ThroughputLogger(camelLogger, groupSize);
} else if (groupInterval != null) {
Boolean groupActiveOnly = getAndRemoveParameter(parameters, "groupActiveOnly", Boolean.class, Boolean.TRUE);