private synchronized void saveConversationData() throws SerializerException {
if (ApptentiveLog.canLog(ApptentiveLog.Level.VERBOSE)) {
ApptentiveLog.v(CONVERSATION, "Saving conversation data...");
ApptentiveLog.v(CONVERSATION, "EventData: %s", getEventData().toString());
ApptentiveLog.v(CONVERSATION, "Messages: %s", messageManager.getMessageStore().toString());
}
long start = System.currentTimeMillis();
FileSerializer serializer = new EncryptedFileSerializer(conversationDataFile, encryptionKey);
serializer.serialize(conversationData);
ApptentiveLog.v(CONVERSATION, "Conversation data saved (took %d ms)", System.currentTimeMillis() - start);
}