public void addAll(DataModel model) {
		for (Integer key : model.getKeys1()) {
			String text = model.getElement(key);
			int paragraph = model.getParagraphForElement(key);
			Map<String, String> attributes = model.getAttributesForElement(key);
			add1(text, paragraph, attributes);
		}

		for (Integer key : model.getKeys2()) {
			String text = model.getElement(key);
			int paragraph = model.getParagraphForElement(key);
			Map<String, String> attributes = model.getAttributesForElement(key);
			add2(text, paragraph, attributes);
		}

		for (Integer leftKey : model.getKeys1()) {
			Set<Integer> connections = model.getConnections(leftKey);

			for (Integer rightKey : connections) {
				addConnection(leftKey, rightKey);
			}
		}

		for (Bookmark bookmark : model.getBookmarks()) {
			addBookmark(bookmark);
		}

		xmlAttributes.addAll(model.xmlAttributes);
		properties.putAll(model.properties);
		setStatistics(model.getStatistics());
	}