public static void appendErrors(String frontpath, TargettedMessageList tml, Errors errors) { tml.pushNestedPath(frontpath); try { for (int i = 0; i < errors.getErrorCount(); ++i) { tml.addMessage(SpringErrorConverter .SpringErrortoTargettedMessage(errors.getAllErrors().get(i))); } } finally { tml.popNestedPath(); } } }