code: public void update(ModelConfig modelConfig) throws FOSException {
          checkNotNull(modelConfig);
  
          this.dirty = true;
  
          // The class index should be reset everytime a model config is updated.
          // TODO: Refactor the classIndex to be in ModelConfig.
          this.modelConfig.getProperties().remove(CLASS_INDEX);
          this.modelConfig.update(modelConfig);
  
          parseModelConfig();
      }
docs: Updates the underlying <code>ModelConfig</code> using <code>ModelConfig.update</code>.
  
  @param modelConfig the model config with the new settings