for (Iterator<Document> i = messageCollectionList.iterator(); i.hasNext();) { Document document = i.next();
for (Document document : messageCollectionList) {
	private static Node findMessageNode(List<Document> messageCollectionList, String xpath,	                                    String missingMsg) throws PluginException {		for (Iterator<Document> i = messageCollectionList.iterator(); i.hasNext();) {			Document document = i.next();			Node node = document.selectSingleNode(xpath);			if (node != null)				return node;		}		throw new PluginException(missingMsg);	}