public function __construct(Cache $cacheReader = null)
{
if (!$cacheReader) {
$cacheReader = $this->createCacheProvider();
}
$this->reader = new CachedReader(new AnnotationReader(), $cacheReader);
AnnotationRegistry::registerAutoloadNamespace("Doctrine\\OrientDB");
AnnotationRegistry::registerFile(__DIR__ . '/Document.php');
AnnotationRegistry::registerFile(__DIR__ . '/Property.php');
}