private Element addProcessors ( Document document , Element root , Map < ReportBuilderImpl . ReportKey , Object > reportsData ) { if ( reportsData . containsKey ( ReportKey . PROCESSORS ) ) { // Adds root tag "processors". Element processors = document . createElement ( "processors" ) ; root . appendChild ( processors ) ; // Adds all processors in child of "processors" tag. String [ ] tabProcessors = ( String [ ] ) reportsData . get ( ReportKey . PROCESSORS ) ; for ( String processor : tabProcessors ) { Element current = document . createElement ( "processor" ) ; current . appendChild ( document . createTextNode ( processor ) ) ; processors . appendChild ( current ) ; } return processors ; } return null ; }
Adds processors child of root element .