// Duplicate checks to prevent severe breakage, also done in message list constructor.
if(message.getAuthor() != list.getAuthor())
throw new RuntimeException("Message author does not match message list author");
if(message.wasInserted() == false)
throw new RuntimeException("Trying to convert a MessageList to XML which contains a not inserted message.");
final Element messageElement = xmlDoc.createElement("Message");
// ID