private static function createOxmConfiguration()
 {
     $applicationMode = "development";
     if ($applicationMode == "development") {
         $cache = new Doctrine\Common\Cache\ArrayCache();
     } else {
         $cache = new Doctrine\Common\Cache\ApcCache();
     }
     $config = new Doctrine\OXM\Configuration();
     $config->setMetadataCacheImpl($cache);
     $driverImpl = $config->newDefaultAnnotationDriver(THISPATH . '/entities');
     $config->setMetadataDriverImpl($driverImpl);
     //$config->setQueryCacheImpl($cache);
     $config->setProxyDir(THISPATH . '/proxy');
     $config->setProxyNamespace('Verify\\Proxies');
     $config->setEntityNamespaces(array('entities'));
     if ($applicationMode == "development") {
         $config->setAutoGenerateProxyClasses(true);
     } else {
         $config->setAutoGenerateProxyClasses(false);
     }
     self::$oxmConfig = $config;
 }