class ConfigUtil {

    List<CfgFile> getFilesFromDirectory(File directory, FilenameFilter filter, boolean recurse) {
        File [] files = directory.listFiles();
        List<CfgFile> ret = new ArrayList<>();
        for(File f:files) {
            if(f.isDirectory() && recurse) {
                ret.addAll(getFilesFromDirectory(f, filter, recurse));
            } else if(filter.accept(f.getParentFile(), f.getName())) {
                ret.add(new CfgFile(f));
            }
        }
        return ret;
    }

    public  ConfigUtil(Configuration saxonConfig, URIResolver uriResolver, String configUri);
    public  ConfigUtil(Configuration saxonConfig, URIResolver uriResolver, String configUri, final boolean skipSchemaValidation, final String currentDir);

}