docs: private W3CEndpointReference buildEndpoint(QName serviceName, String adress) {
          W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
          // builder.serviceName(serviceName);
          builder.address(adress);
          SLEndpoint endpoint = null;
          try {
              endpoint = locatorClient.getEndpoint(serviceName, adress);
          } catch (ServiceLocatorException e) {
              throw new WebApplicationException(Response
                      .status(Status.INTERNAL_SERVER_ERROR)
                      .entity(e.getMessage()).build());
          } catch (InterruptedException e) {
              throw new WebApplicationException(Response
                      .status(Status.INTERNAL_SERVER_ERROR)
                      .entity(e.getMessage()).build());
          }
          if (endpoint != null) {
              SLProperties properties = endpoint.getProperties();
              if (properties != null && !properties.getPropertyNames().isEmpty()) {
                  EndpointTransformerImpl transformer = new EndpointTransformerImpl();
  
                  DOMResult result = new DOMResult();
                  transformer.writePropertiesTo(properties, result);
                  Document docResult = (Document) result.getNode();
  
                  builder.metadata(docResult.getDocumentElement());
              }
          }
          return builder.build();
      }