Using PageLinksExtractor.collectInternalLinks() instead of a personal function.