code: private void addHeadlines(final PrintWriter writer, final List headlines) {
  		if (headlines == null || headlines.isEmpty()) {
  			return;
  		}
  
  		writer.write("\n<!-- Start general headlines -->");
  
  		for (Object line : headlines) {
  			writer.write("\n" + line);
  		}
  
  		writer.println("\n<!-- End general headlines -->");
  	}
docs: Add a list of html headline entries intended to be added only once to the page.
  
  @param writer the writer to write to.
  @param headlines a list of html entries to be added to the page as a whole.