Added method baseUriOfAncestorOrSelf