code: public void registerServiceWithRegistrationCheck(String host, int port, RegistrationCheck check, String name, String id, String... tags) {
          Registration registration = new Registration();
          registration.setHost(host);
          registration.setPort(port);
          registration.setCheck(check);
          registration.setName(name);
          registration.setId(id);
          registration.setTags(tags);
          register(registration);
      }
docs: Registers the client as a service with Consul.  Registration enables
  the use of checks.
  
  @param port  The public facing port of the service to register with Consul.
  @param check The health check to run periodically.  Can be null.
  @param name  Service name to register.
  @param id    Service id to register.
  @param tags  Tags to register with.