public void fillModel()

in saml-authentication-server/src/main/java/jetbrains/buildServer/auth/saml/plugin/SamlSettingsAdminPage.java [46:61]


    public void fillModel(@NotNull Map<String, Object> model, @NotNull HttpServletRequest request) {
        super.fillModel(model, request);

        String requestURL = WebUtil.getRequestUrl(request);
        String pluginResourcesPath = this.pluginDescriptor.getPluginResourcesPath();
        String resourcesPath = requestURL.replaceAll("/admin.*", pluginResourcesPath);

        model.put("pluginResources", resourcesPath);

        try {
            model.put("settings", this.settingsStorage.load());
        } catch (IOException e) {
            LOG.error("Failed to load the settings from the storage: " + e.getMessage(), e);
            model.put("settings", new SamlPluginSettings());
        }
    }