@SuppressWarnings("unchecked")
    private void setModules(SchemaGeneratorConfigBuilder configBuilder) throws MojoExecutionException {
        for (GeneratorModule module : Util.nullSafe(this.modules)) {
            if (!Util.isNullOrEmpty(module.className)) {
                this.addCustomModule(module.className, configBuilder);
            } else if (!Util.isNullOrEmpty(module.name)) {
                this.addStandardModule(module, configBuilder);
            }
        }
    }
Configure all the modules on the generator.

@param configBuilder The builder on which the modules are added.
@throws MojoExecutionException Invalid module name or className configured
jsonschema-maven-plugin/src/main/java/com/github/victools/jsonschema/plugin/maven/SchemaGeneratorMojo.java