Allow passing ObjectManager instance to DocumentType