Using MediaReference also during the generation of the FIMES XML.