private void addStandardModule(GeneratorModule module, SchemaGeneratorConfigBuilder configBuilder) throws MojoExecutionException {
        switch (module.name) {
        case "Jackson":
            this.getLog().debug("- Adding Jackson Module");
            this.addStandardModuleWithOptions(module, configBuilder, JacksonModule::new, JacksonOption.class);
            break;
        case "JakartaValidation":
            this.getLog().debug("- Adding Jakarta Validation Module");
            this.addStandardModuleWithOptions(module, configBuilder, JakartaValidationModule::new, JakartaValidationOption.class);
            break;
        case "JavaxValidation":
            this.getLog().debug("- Adding Javax Validation Module");
            this.addStandardModuleWithOptions(module, configBuilder, JavaxValidationModule::new, JavaxValidationOption.class);
            break;
        case "Swagger15":
            this.getLog().debug("- Adding Swagger 1.5 Module");
            this.addStandardModuleWithOptions(module, configBuilder, SwaggerModule::new, SwaggerOption.class);
            break;
        case "Swagger2":
            this.getLog().debug("- Adding Swagger 2.x Module");
            configBuilder.with(new Swagger2Module());
            break;
        default:
            throw new MojoExecutionException("Error: Module does not have a name in "
                    + "['Jackson', 'JakartaValidation', 'JavaxValidation', 'Swagger15', 'Swagger2'] or does not have a custom classname.");
        }
    }
Instantiate and apply the standard module with the given name to the config builder.

@param module Record in the modules section from the pom containing at least a name.
@param configBuilder The builder on which the module is added.
@throws MojoExecutionException When an invalid module name or option is specified.
jsonschema-maven-plugin/src/main/java/com/github/victools/jsonschema/plugin/maven/SchemaGeneratorMojo.java