@RequirePOST
    @Restricted(NoExternalUse.class)
    public void doApply(StaplerRequest2 req, StaplerResponse2 res) throws Exception {

        if (!Jenkins.get().hasPermission(Jenkins.ADMINISTER)) {
            res.sendError(HttpServletResponse.SC_FORBIDDEN);
            return;
        }
        configureWith(YamlSource.of(req));
    }
Main entry point to start configuration process.
@throws ConfiguratorException Configuration error
plugin/src/main/java/io/jenkins/plugins/casc/ConfigurationAsCode.java