private void verifyModel(String field) {
        if ( ! modelDefs.containsKey(field))
            throw new IllegalArgumentException("No such model in " + verifyWarning(field));
    }
Throws if the given value is not legal.
config/src/main/java/com/yahoo/vespa/config/ConfigDefinition.java