public static Version of(String version) {
            switch (version) {
                case "1":
                    return Version.ONE;
                default:
                    throw new IllegalArgumentException("unsupported version " + version);
            }
        }
Get the {@link SecretSource}s used to substitute <code>${XX}</code> test used as yaml values with sensitive data.
plugin/src/main/java/io/jenkins/plugins/casc/ConfigurationContext.java