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