/**
  * @param ObjectAdapterManager $oma
  */
 public function __construct(ObjectAdapterManager $oma)
 {
     $this->objectAdapterManager = $oma;
     $this->configuration = $this->objectAdapterManager->getConfiguration();
     $this->setCacheDriver($this->configuration->getMetadataCacheImpl());
     $this->driver = $this->configuration->getMetadataDriverImpl();
     $this->evm = $this->objectAdapterManager->getEventManager();
 }