public static void main(String[] args) {
        try {
            AESEncryptor encryptor = new AESEncryptor("TheSupaSecretKey");
            ManagerSettingsRemote settings = new ManagerSettingsRemote();
//            settings.setProperty("localDirectory", "/home/alkise/Pictures");
//            settings.setProperty("hostname", "127.0.0.1");
//            settings.setProperty("username", "Anonymous");
//            settings.setProperty("password", encryptor.encrypt("secretpassword"));
//            settings.setProperty("workingDirectory", "");
//            settings.save();
            settings.load();
            ItemListIntf fromList = new FileItemList(settings.getProperty("localDirectory"));
            ItemListIntf toList = new FTPItemList(settings.getProperty("hostname"), 
                    settings.getProperty("username"), 
                    encryptor.encrypt(settings.getProperty("password")), 
                    settings.getProperty("workingDirectory"));
            ManagerModelRemoteIntf model = new ManagerModelRemote(fromList, toList);
            
            LocateRegistry.createRegistry(1099);
            Naming.rebind("ManagerModel", model);
            Naming.rebind("ManagerSettings", settings);
            System.out.println("Server started");
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }