Using Set implementation in Domain and MIME classes to prevent Content duplicates. hashCode() and equals() overriden in Content class to support this.