/*
  * (non-Javadoc)
  * @see java.lang.Object#equals(java.lang.Object)
  */
 @Override
 public boolean equals(Object obj) {
   if (this == obj) {
     return true;
   }
   if (obj == null) {
     return false;
   }
   if (!(obj instanceof PublicationWithStatus)) {
     return false;
   }
   PublicationWithStatus other = (PublicationWithStatus) obj;
   if (pub == null) {
     if (other.pub != null) {
       return false;
     }
   } else if (!pub.equals(other.pub)) {
     return false;
   }
   if (update != other.update) {
     return false;
   }
   return true;
 }