static EndpointImpl construct(final EndpointBuilder endpointBuilder) throws IOException {
final String endpointName = endpointBuilder.getEndpointName();
final List<ConnectionBuilder> connectionBuilders = endpointBuilder.getConnectionBuilders();
final List<ConnectionProviderFactoryBuilder> factoryBuilders = endpointBuilder.getConnectionProviderFactoryBuilders();
final EndpointImpl endpoint;
<BUG>XnioWorker xnioWorker = endpointBuilder.getXnioWorker();
if (xnioWorker == null) {</BUG>
Xnio xnio = Xnio.getInstance(EndpointImpl.class.getClassLoader());
final OptionMap.Builder builder = OptionMap.builder();
final OptionMap workerOptions = endpointBuilder.getXnioWorkerOptions();

static EndpointImpl construct(final EndpointBuilder endpointBuilder) throws IOException {
final String endpointName = endpointBuilder.getEndpointName();
final List<ConnectionBuilder> connectionBuilders = endpointBuilder.getConnectionBuilders();
final List<ConnectionProviderFactoryBuilder> factoryBuilders = endpointBuilder.getConnectionProviderFactoryBuilders();
final EndpointImpl endpoint;
XnioWorker xnioWorker = endpointBuilder.getXnioWorker();
final SocketAddress defaultBindAddress = endpointBuilder.getDefaultBindAddress();
if (xnioWorker == null) {
Xnio xnio = Xnio.getInstance(EndpointImpl.class.getClassLoader());
final OptionMap.Builder builder = OptionMap.builder();
final OptionMap workerOptions = endpointBuilder.getXnioWorkerOptions();
