}
xml.append("</missions>\n");
xml.append("<messages>\n");
Iterator<Message> messagesIterator = player.getMessagesIterator();
while (messagesIterator.hasNext()) {
Message message = messagesIterator.next();
DefaultMessage defaultMessage = (DefaultMessage) message;
xml.append(new MessageXMLConverter().toXML(defaultMessage));
}
xml.append("</messages>\n");
return xml.toString();