public XWikiDocument this[String pageName] { get { foreach (XWikiDocument doc in documents) { if (doc.name == pageName) { return doc; } } throw new PageDoesNotExistException(); } }