// note, fsManager is not a singleton here ! thus it is meant that
// a fsManager is created per thread and close the fsManager
DefaultFileSystemManager fsManager = new DefaultFileSystemManager();
if (ftp) {
fsManager.addProvider("ftp", new FtpFileProvider());
}
if (sftp) {
fsManager.addProvider("sftp", new SftpFileProvider());
}
if (http) {