/**
* Lazy initialization of this stuff, especially the metadata driver,
* since these are not needed at all when a metadata cache is active.
*/
protected function initialize()
{
$this->driver = $this->configuration->getMetadataDriverImpl();
if (null === $this->evm) {
$this->evm = new EventManager();
}
$this->initialized = true;
}