@Override
    public void init(FilterConfig filterConfig) throws ServletException {
        this.filterConfig = filterConfig;
        this.resourceRoot = ConfigDirectoryFinder.getConfigDirectory().resolve("portal");
        this.config = ConfigFactory.createConfig();
        // Some code sleuthing in Undertow let me find out how to provide a custom resource manager, hence letting the default HTTP servlet do its work in a different
        // directory. Unfortunately, this will not be portable, so need to think of a more vendor-neutral way to achieve this, potentially.
        ServletContextImpl sc = (ServletContextImpl) filterConfig.getServletContext();
        FileResourceManager resManager = new FileResourceManager(resourceRoot.toFile());
        sc.getDeployment().getDeploymentInfo().setResourceManager(resManager);
    }
@author Marc Savy {@literal <marc@blackparrotlabs.io>}
portal/war/wildfly/src/main/java/io/apiman/portal/SplitterFilter.java