code: public static KieServerControllerClient newRestClient(final String controllerUrl,
                                                            final String login,
                                                            final String password) {
          return new RestKieServerControllerClient(controllerUrl,
                                                   login,
                                                   password);
      }
docs: Creates a new Kie Controller Client using REST based service
  @param controllerUrl the URL to the server (e.g.: "http://localhost:8080/kie-server-controller/rest/controller")
  @param login user login
  @param password user password
  @return client instance