private void errorsToHTML(Errors errors,PrintWriter writer){
  if (errors != null && errors.hasErrors()) {
    writer.print("<ol>");
    for (    final String text : errors.getTexts()) {
      writer.print("<li>");
      writer.print(StringEscapeUtils.escapeHtml4(text));
      writer.print("</li>");
    }
    writer.print("</ol>");
  }
}

private void errorsToHTML ( Errors errors , PrintWriter writer ) { if ( errors != null && errors . hasErrors ( ) ) { writer . print ( "<ol>" ) ; for ( final String text : errors . getTexts ( ) ) { writer . print ( "<li>" ) ; writer . print ( StringEscapeUtils . escapeHtml4 ( text ) ) ; writer . print ( "</li>" ) ; } writer . print ( "</ol>" ) ; } }
helper method . converts ` errors ` to html .
