docs: public EndpointReferenceList lookupEndpoints(String arg0, List<String> arg1) {
          QName serviceName = null;
          try {
              serviceName = QName.valueOf(URLDecoder.decode(arg0, "UTF-8"));
          } catch (UnsupportedEncodingException e1) {
              throw new WebApplicationException(Response
                      .status(Status.INTERNAL_SERVER_ERROR)
                      .entity(e1.getMessage()).build());
          }
          List<String> names = null;
          String adress = null;
          SLPropertiesMatcher matcher = null;
          try {
              matcher = createMatcher(arg1);
          } catch (UnsupportedEncodingException e1) {
              throw new WebApplicationException(Response
                      .status(Status.INTERNAL_SERVER_ERROR)
                      .entity(e1.getMessage()).build());
          }
          EndpointReferenceList refs = new EndpointReferenceList();
          try {
              initLocator();
              if (matcher == null) {
                  names = locatorClient.lookup(serviceName);
              } else {
                  names = locatorClient.lookup(serviceName, matcher);
              }
          } 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 (names != null && !names.isEmpty()) {
              for (int i = 0; i < names.size(); i++) {
                  adress = names.get(i);
                  refs.getEndpointReference().add(buildEndpoint(serviceName, adress));
              }
          } else {
              if (LOG.isLoggable(Level.WARNING)) {
                  LOG.log(Level.WARNING, "lookup Endpoints for " + serviceName
                          + " failed, service is not known.");
              }
              throw new WebApplicationException(Response.status(Status.NOT_FOUND)
                      .entity("Service not found").build());
          }
          return refs;
      }