+ /**
+ * Clears this bean
+ */
+ private void clear () {
+ // Clear all data
+ // - personal data
+ this.setGender(null);
+ this.setTitle(null);
+ this.setFirstName(null);
+ this.setFamilyName(null);
+ this.setStreet(null);
+ this.setHouseNumber(null);
+ this.setHouseNumberExtension(null);
+ this.setZipCode(null);
+ this.setCity(null);
+ this.setCountry(null);
+
+ // - contact data
+ this.setEmailAddress(null);
+ this.setLandLineCountry(null);
+ this.setLandLineAreaCode(null);
+ this.setLandLineNumber(null);
+ this.setMobileProvider(null);
+ this.setMobileNumber(null);
+ this.setFaxCountry(null);
+ this.setFaxAreaCode(null);
+ this.setFaxNumber(null);
+
+ // - other data
+ this.setBirthday(null);
+ this.setComment(null);
+ }
+
+ /**
+ * Checks whether the given contact is found
+ * <p>
+ * @param contact Contact inastance
+ *
+ * @return Wether contact has been found
+ */
+ private boolean isSameContactFound (final Contact contact) {
+ // Default is not found
+ boolean IsFound = false;
+
+ // Get iterator
+ Iterator<Contact> iterator = this.contactController.allContacts().iterator();
+
+ // Loop through all
+ while (iterator.hasNext()) {
+ // Get next contact
+ Contact next = iterator.next();
+
+ // Is the same?
+ if (ContactUtils.isSameContact(contact, next)) {
+ // Yes, then abort loop
+ IsFound = false;
+ break;
+ }
+ }
+
+ // Return status
+ return IsFound;
+ }
+