@Override public void addEndpoint(final Endpoint endpoint){
  endpoint.setMessageDeliverer(deliverer);
  endpoint.setExecutor(executor);
  endpoints.add(endpoint);
}

@ Override public void addEndpoint ( final Endpoint endpoint ) { endpoint . setMessageDeliverer ( deliverer ) ; endpoint . setExecutor ( executor ) ; endpoints . add ( endpoint ) ; }
adds an endpoint to the server . warning : it automatically configures the default executor of the server . endpoints that should use their own executor ( e . g . , to prioritize or balance request handling ) either set it afterwards before starting the server or override the setexecutor ( ) method of the special endpoint .
