serializer.write(this, plaintextRepoOutputStream);
CipherUtil.encrypt(new ByteArrayInputStream(plaintextRepoOutputStream.toByteArray()), new FileOutputStream(file), cipherSpecs, masterKey);
}
catch (Exception e) {
throw new ConfigException("Cannot write repoTO (encrypted) to file " + file, e);
}
}