private static String parseErrorMessages(List<Message> errors) {
StringBuilder sb = new StringBuilder();
if (errors != null && errors.size() > 0) {
Iterator<Message> it = errors.iterator();
while(it.hasNext()) {
Message vm = (ExpandedMessage)it.next();
String key = vm.getId();
String content = vm.getContent();
String error = "";
if (key != null && !"".equals(key)) {
error = key + ": ";
}
error += content;