System.out.println("Property: " + key + "=" + value);
WebClient wc = WebClient.create(BASE_ADDRESS);
EntryType et = new EntryType();
et.setKey(key);
et.getValue().add(value);
RegisterEndpointRequest registerEndpointRequest = new RegisterEndpointRequest();
registerEndpointRequest.setEndpointURL(endpoint);
registerEndpointRequest.setBinding(BindingType.JAXRS);
registerEndpointRequest.setTransport(TransportType.HTTPS);
registerEndpointRequest.setServiceName(service);
registerEndpointRequest.getEntryType().add(et);
try {
wc.post(registerEndpointRequest);
System.out.println("Endpoint registered successfully");
} catch (WebApplicationException ex) {
System.err.println(ex.getMessage());