To reduce code duplication call the other getLinks() with the outLinks attribute.