return xml.toString();
}
public UnitContainerManager initializeFromNode(Realm realm, Node node) {
UnitContainerManager unitContainerManager = new UnitContainerManager(containerUnit);
unitContainerManager.clear();
for (Node subNode = node.getFirstChild(); subNode != null; subNode = subNode.getNextSibling()) {
if (subNode.getNodeType() == Node.ELEMENT_NODE) {
int unitId = Integer.parseInt(subNode.getFirstChild().getNodeValue());
unitContainerManager.addUnit(unitId);
}