diff --git a/product/ERP5/Document/Domain.py b/product/ERP5/Document/Domain.py
index a155ca5ad4698225091cfd801e631c965773c024..7d08e5bdc6a5691f955addc615ca862333e8a894 100644
--- a/product/ERP5/Document/Domain.py
+++ b/product/ERP5/Document/Domain.py
@@ -105,8 +105,7 @@ class Domain(Predicate, MetaNode, MetaResource):
     We need a way to know how deep we are in the domain generation
     to prevent infinite recursion XXX not implemented
     """
-    from Products.ERP5Type.Document import newTempDomainGenerator
-    klass = tmp_domain_generator = newTempDomainGenerator(self, 'new_generator')
+    klass = tmp_domain_generator = self.newContent(portal_type='Domain', temp_object=1)
     script = self.getDomainGeneratorMethodId('')
     return tmp_domain_generator.getDomainGeneratorList(depth=depth, klass=klass, script=script, parent=self)