question: protected AttributesImpl addNamespaceAttribute ( AttributesImpl attrs , Namespace namespace ) { if ( declareNamespaceAttributes ) { if ( attrs == null ) { attrs = new AttributesImpl ( ) ; } String prefix = namespace . getPrefix ( ) ; String qualifiedName = "xmlns" ; if ( ( prefix != null ) && ( prefix . length ( ) > 0 ) ) { qualifiedName = "xmlns:" + prefix ; } String uri = "" ; String localName = prefix ; String type = "CDATA" ; String value = namespace . getURI ( ) ; attrs . addAttribute ( uri , localName , qualifiedName , type , value ) ; } return attrs ; }
target:  If isDelcareNamespaceAttributes() is enabled then this method will add the given namespace declaration to the supplied attributes object, creating one if it does not exist.