code: protected ConfigurationParser getParserBySchemaVersion() throws MojoExecutionException {
          final String schemaVersion = StringUtils.isEmpty(getSchemaVersion()) ? "v1" : getSchemaVersion();
  
          switch (schemaVersion.toLowerCase(Locale.ENGLISH)) {
              case "v1":
                  return new V1ConfigurationParser(this);
              case "v2":
                  return new V2ConfigurationParser(this);
              default:
                  throw new MojoExecutionException(SchemaVersion.UNKNOWN_SCHEMA_VERSION);
          }
      }
docs: endregion