* @param info to be saved.
* @return true if and only if successful; false otherwise.
*/
private boolean save(SessionInfo info, String accountId) {
try {
Gson gson = new GsonBuilder().registerTypeAdapter(Location.class, new LocationCodec(locationFactory)).create();
Location outputDir = locationFactory.create(archiveDir + "/" + accountId);
if (!outputDir.exists()) {
return false;
}
final Location sessionInfoFile = outputDir.append("session.json");