@Override
    protected JNLPLauncher instance(Mapping config, ConfigurationContext context) throws ConfiguratorException {
        try {
            return super.instance(config, context);
        } catch (ConfiguratorException e) {
            // see https://issues.jenkins.io/browse/JENKINS-51603
            final CNode tunnel = config.get("tunnel");
            final CNode vmargs = config.get("vmargs");
            return new JNLPLauncher(
                    tunnel != null ? tunnel.asScalar().getValue() : null,
                    vmargs != null ? vmargs.asScalar().getValue() : null);
        }
    }
@author <a href="mailto:nicolas.deloof@gmail.com">Nicolas De Loof</a>
plugin/src/main/java/io/jenkins/plugins/casc/core/JNLPLauncherConfigurator.java