Use the context of the relation field for instanciation

issue4098
review13461002