question: private void putNamespaces ( XMLStreamReader reader ) { for ( int i = 0 ; i < reader . getNamespaceCount ( ) ; i ++ ) { final String prefix = reader . getNamespacePrefix ( i ) ; if ( prefix != null ) { putNamespace ( prefix , reader . getNamespaceURI ( i ) ) ; } } }
target:  Should be invoked on ELEMENT_START event