@RequirePOST
    @Restricted(NoExternalUse.class)
    public void doReplace(StaplerRequest2 request, StaplerResponse2 response) throws Exception {
        if (!Jenkins.get().hasPermission(Jenkins.ADMINISTER)) {
            response.sendError(HttpServletResponse.SC_FORBIDDEN);
            return;
        }
        String newSource = request.getParameter("_.newSource");
        String normalizedSource = Util.fixEmptyAndTrim(newSource);
        List<String> candidateSources = new ArrayList<>();
        for (String candidateSource : inputToCandidateSources(normalizedSource)) {
            File file = new File(candidateSource);
            if (file.exists() || ConfigurationAsCode.isSupportedURI(candidateSource)) {
                candidateSources.add(candidateSource);
            } else {
                LOGGER.log(Level.WARNING, "Source {0} could not be applied", candidateSource);
                // todo: show message in UI
            }
        }
        if (!candidateSources.isEmpty()) {
            List<YamlSource> candidates = getConfigFromSources(candidateSources);
            if (canApplyFrom(candidates)) {
                sources = candidateSources;
                configureWith(getConfigFromSources(getSources()));
                CasCGlobalConfig config = GlobalConfiguration.all().get(CasCGlobalConfig.class);
                if (config != null) {
                    config.setConfigurationPath(normalizedSource);
                    config.save();
                }
                LOGGER.log(Level.FINE, "Replace configuration with: " + normalizedSource);
            } else {
                LOGGER.log(Level.WARNING, "Provided sources could not be applied");
                // todo: show message in UI
            }
        } else {
            LOGGER.log(Level.FINE, "No such source exists, applying default");
            // May be do nothing instead?
            configure();
        }
        response.sendRedirect("");
    }
Name of the category for this management link.
TODO: Use getCategory when core requirement is greater or equal to 2.226
plugin/src/main/java/io/jenkins/plugins/casc/ConfigurationAsCode.java