final FTPFSDevice dev = new FTPFSDevice(host, user, password);
dev.setDriver(new FTPFSDriver());
FTPFileSystem fs = null;
try {
dm.register(dev);
fs = type.create(dev, true);
fss.registerFileSystem(fs);
fss.mount(mountPoint.getAbsolutePath(), fs, null);
ok = true;
} catch (Exception ex) {
getError().getPrintStream().println("FTP mount failed: " + ex.getLocalizedMessage());