Use Apace Commons EqualsBuilder and HashCodeBuilder