public function hasEncryptionEnabled(\ReflectionClass $reflection, DoctrineClassMetadata $metadata = null)
    {
        $classMetadata = $this->getEncryptionMetadataFor($reflection->getName());
        return $classMetadata->encryptionEnabled;
    }