question: replace an attachment on this object if an existing attachment exists . concode_field_sep Map<AttachmentKey<?>,Object> attachments concode_field_sep Map<AttachmentKey<?>,?> getAttachments concode_elem_sep T getAttachment concode_elem_sep T putAttachmentIfAbsent concode_elem_sep void clearAttachments concode_elem_sep T removeAttachment concode_elem_sep boolean removeAttachment concode_elem_sep T putAttachment
target: T function ( AttachmentKey < T > arg0 , T arg1 ) { if ( arg0 == null ) return null ; Assert . checkNotNullParam ( "srini_string" , arg1 ) ; final Map < AttachmentKey < ? > , Object > loc0 = this . attachments ; synchronized ( loc0 ) { return ( T ) ( loc0 . containsKey ( arg0 ) ? loc0 . put ( arg0 , arg1 ) : null ) ; } }