Groovy Script to find the pages with links