public static String createClassName(String defName) {
        String className =  Arrays.stream(defName.split("-"))
                .map(ConfiggenUtil::capitalize)
                .collect(Collectors.joining())
                + "Config";

        if (! isLegalJavaIdentifier(className))
            throw new CodegenRuntimeException("Illegal config definition file name '" + defName +
                                                      "'. Must be a legal Java identifier.");

        return className;
    }
Create class name from def name

@param defName the file name without the '.def' suffix
configgen/src/main/java/com/yahoo/config/codegen/ConfiggenUtil.java