code: public void migrateLegacyStorage() {
  		try {
  			File unencryptedFile = Util.getUnencryptedFilename(file);
  			if (unencryptedFile.exists()) {
  				try {
  					List<MessageEntry> entries = readFromLegacyFile(unencryptedFile);
  					messageEntries.addAll(entries);
  					writeToFile();
  				} finally {
  					boolean deleted = unencryptedFile.delete();
  					ApptentiveLog.d(CONVERSATION, "Deleted legacy message storage: %b", deleted);
  				}
  			}
  		} catch (Exception e) {
  			ApptentiveLog.e(CONVERSATION, e, "Exception while migrating messages");
  			logException(e);
  		}
  	}
docs: region Migration