Using copy method of EntityRef instead of EntityManager's method.