+ this.storageFile.writeBytes(str);\r
+ }\r
+\r
+ /**\r
+ * Adds given contact to list\r
+ * \r
+ * @param contact Contact instance to add\r
+ * @param list List instance\r
+ */\r
+ private void addContactToList (final Contact contact, final List<Contact> list) {\r
+ // Debug message\r
+ this.getLogger().debug(MessageFormat.format("contact={0}", contact));\r
+\r
+ // Is the contact read?\r
+ if (contact instanceof Contact) {\r
+ // Then add it\r
+ boolean added = list.add(contact);\r
+\r
+ // Debug message\r
+ this.getLogger().debug(MessageFormat.format("contact={0} added={1}", contact, added));\r
+\r
+ // Has it been added?\r
+ if (!added) {\r
+ // Not added\r
+ this.getLogger().warn("Contact object has not been added.");\r
+ }\r
+ }\r