public <MODEL extends ConfigModel> List<MODEL> getConfigModels(Class<MODEL> clazz) {
        return model.configModelRepo().getModels(clazz);
    }
Get a list of all config models of a particular type.

@param clazz The class of the models to find.
@return A list of models of given type.
config-model/src/main/java/com/yahoo/config/model/test/TestRoot.java