- Manager m = new Manager(account, pathConfig, serviceConfiguration, userAgent);
+ try (SignalAccount account = SignalAccount.createLinkedAccount(pathConfig.getDataPath(), username, ret.getUuid(), password, ret.getDeviceId(), ret.getIdentity(), registrationId, signalingKey, profileKey)) {
+ account.save();