You should have links to them somewhere, or at least know where to look, so by identifying them, you probably put them in a collection that you then repeat.
If you do not know where the links live, you will need to introduce some kind of tracking mechanism. Maybe a static collection by type? However, this must be carefully implemented.
source share