Description
The AttributeKey class seems like a good idea to use as a key in a Map. But if you try to use different instances with the same values (e.g. MyObject.class, "context") , you can't access the same attribute.
So either document this behaviour (I'm using it some years now and noticed it while writing a testclass now), or implement hashCode() and equals()-Methods to find AttributeKeys with the same values.