Makes the UnitOfWork#getOrCreateDocument to use DocumentManager#getClassNameFromDiscriminatorValue in order to resolve the discriminator value