question: protected DocumentBuilderSetting [ ] mergeSettings ( DocumentBuilderSetting [ ] newSettings ) { if ( newSettings == null ) { return ( DocumentBuilderSetting [ ] ) settings . clone ( ) ; } List mergedSettings = new ArrayList ( settings . length + newSettings . length ) ; for ( int i = 0 ; i < newSettings . length ; i ++ ) { mergedSettings . add ( newSettings [ i ] ) ; } for ( int i = 0 ; i < settings . length ; i ++ ) { DocumentBuilderSetting setting = settings [ i ] ; boolean hasConflict = false ; for ( int j = 0 ; j < newSettings . length ; j ++ ) { DocumentBuilderSetting newSetting = newSettings [ j ] ; if ( newSetting . hasConflict ( setting ) || setting . hasConflict ( newSetting ) ) { hasConflict = true ; break ; } } if ( ! hasConflict ) { mergedSettings . add ( setting ) ; } } DocumentBuilderSetting [ ] mergedArray = new DocumentBuilderSetting [ mergedSettings . size ( ) ] ; for ( int i = 0 ; i < mergedSettings . size ( ) ; i ++ ) { mergedArray [ i ] = ( DocumentBuilderSetting ) mergedSettings . get ( i ) ; } return mergedArray ; }
target:  Merges the settings from the specific test case or suite with the existing (typically session) settings.