code: public EndpointInfo build(EndpointInfoBuilderContext ctx, String serviceImplBeanClassName, EndpointType endpointType) throws UnableToAdaptException {
  
          EndpointInfo endpointInfo = new EndpointInfo(serviceImplBeanClassName, endpointType);
          endpointInfo.setBeanName((String) ctx.getContextEnv(JaxWsConstants.ENV_ATTRIBUTE_ENDPOINT_BEAN_NAME));
          endpointInfo.setServletName((String) ctx.getContextEnv(JaxWsConstants.ENV_ATTRIBUTE_ENDPOINT_SERVLET_NAME));
  
          invokeConfigurators(ctx, ConfigMethod.PREPARE, endpointInfo);
          invokeConfigurators(ctx, ConfigMethod.CONFIG, endpointInfo);
  
          validate(ctx, endpointInfo);
  
          ctx.clearContextEnv();
  
          return endpointInfo;
      }
docs: build the endpointInfo
  
  @param ctx
  @return
  @throws Exception