question: private void populateDbOptions ( String dbProduct , Element dbOptionsElement , Map < String , String > dbOptionsMap ) { NodeList dbOptions = dbOptionsElement . getElementsByTagName ( "dbOption" ) ; for ( int i = 0 ; i < dbOptions . getLength ( ) ; i ++ ) { Element dbOption = ( Element ) dbOptions . item ( i ) ; if ( ! dbProduct . equalsIgnoreCase ( dbOption . getAttribute ( "db" ) ) ) { continue ; } dbOptionsMap . put ( dbOption . getAttribute ( "name" ) , dbOption . getAttribute ( "value" ) ) ; } }
target:  Gets all the name/value pair db option couples related to the dbProduct, and put them into the dbOptionsMap.