question: @ Override protected void cloneContent ( NamedNodeMapImpl srcmap ) { List srcnodes = srcmap . nodes ; if ( srcnodes != null ) { int size = srcnodes . size ( ) ; if ( size != 0 ) { if ( nodes == null ) { nodes = new ArrayList ( size ) ; } else { nodes . clear ( ) ; } for ( int i = 0 ; i < size ; ++ i ) { NodeImpl n = ( NodeImpl ) srcnodes . get ( i ) ; NodeImpl clone = ( NodeImpl ) n . cloneNode ( true ) ; clone . isSpecified ( n . isSpecified ( ) ) ; nodes . add ( clone ) ; clone . ownerNode = ownerNode ; clone . isOwned ( true ) ; } } } }
target:  Override parent's method to set the ownerNode correctly