code: public void updateClientId(String clientId) {
          if (configForVM != null) {
              configForVM.withClientId(clientId);
          } else {
              configForAppService.withClientId(clientId);
          }
      }
docs: Updates the client Id for the associated config (vm or app)
  Specifying a null value will clear out the old value
  @param clientId