code: public void updateServiceInstanceUri(String serviceName, String instanceId, String uri, final RegistrationCallback cb, Object context){
          ProtocolHeader header = new ProtocolHeader();
          header.setType(ProtocolType.UpdateServiceInstanceUri);
  
          UpdateServiceInstanceUriProtocol p = new UpdateServiceInstanceUriProtocol(serviceName, instanceId, uri);
          ProtocolCallback pcb = new ProtocolCallback(){
  
              @Override
              public void call(boolean result, Response response,
                      ErrorCode error, Object ctx) {
                  cb.call(result, error, ctx);
              }
  
          };
          connection.submitCallbackRequest(header, p, pcb, context);
      }
docs: Update ServiceInstance URI in Callback.
  
  @param serviceName
  the service name.
  @param instanceId
  the instanceId.
  @param uri
  the new URI.
  @param cb
  the Callback.
  @param context
  the object context.