code: private void validateModelCategory(ModelCategory c) throws PredictException {
      if (!m.getModelCategories().contains(c))
        throw new PredictException(c + " prediction type is not supported for this model.");
    }
docs: ----------------------------------------------------------------------