+ /**
+ * True, if no contact data exists in any of the lists (email, phone, ...).
+ */
+ @Transient
+ public boolean isEmpty(){
+ if (isEmpty(emailAddresses) && isEmpty(faxNumbers) && isEmpty(phoneNumbers)
+ && isEmpty(urls) && isEmpty(addresses)){
+ return true;
+ }else{
+ return false;
+ }
+ }
+
+ private boolean isEmpty(Collection<? extends Object> collection) {
+ return collection == null || collection.isEmpty();
+ }
+
+ /**