Hi Abdul,
1.Create entity with Generalization FileDocument and associate(one to many) to entity from which you want to retreive data.
2.Retreive Data for current user, Create Object Of Entity of newly created entity ,Iterate the retreive data in a loop and in change object pass the specialized entity(FileDocument) Object to Iterator Object
PFA