Same as above. Doing `ClassUtils::getClass($entity)` or `$this->metadataFactory->getMetadataFor(get_class($entity));` is pretty much the same