code: public Endpoint publishEndpoint(String path, Object service, BasicAuthentication authentication) {
          return this.publishEndpoint(path, service, authentication, null);
      }
docs: Publish JAX-WS protected endpoint using Dropwizard BasicAuthentication. EndpointBuilder is published relative
  to the CXF servlet path.
  @param path Relative endpoint path.
  @param service Service implementation.
  @param authentication BasicAuthentication implementation.
  @return javax.xml.ws.Endpoint
  
  @deprecated Use the {@link #publishEndpoint(EndpointBuilder)} publishEndpoint} method instead.