I'm also wondering how the equals is performed on a serialized key; Iassume they are compared as byte[], but if that's the case that shouldbe clearly documented as it would ignore any custom equals()implementation.