public < V > V attach ( final AttachmentKey < V > key , final V value ) { assert key != null ; return key . cast ( contextAttachments . put ( key , value ) ) ; }
Attaches an arbitrary object to this context .