private String addTitleToHtmlFile ( String html , String title ) { if ( html == null ) { return html ; } if ( title != null ) { getLog ( ) . debug ( "Setting the title in the HTML file to: " + title ) ; return html . replaceFirst ( "titleToken" , title ) ; } else { getLog ( ) . debug ( "Title was null, setting the title in the HTML file to an empty string" ) ; return html . replaceFirst ( "titleToken" , "" ) ; } }
Adds the title to the html file .