String name = (String) properties.get(Endpoint.NAME);
if (name == null || name.length() == 0) {
name = EXECUTOR_DEFAULT;
}
name = EXECUTOR_PREFIX + name;
Executor executor = executorFactory.createExecutor(name);
// Create channel
ChannelImpl channel = new ChannelImpl(wrapper, executor, nmr);
wrapper.setChannel(channel);
wrappers.put(wrapper, endpoint);
registry.register(wrapper, properties);