public function load()
 {
     $this->evalClass($this->classmetadata);
     $builder = new ProxyBuilder();
     $builder->setNamespace($this->classmetadata->getNamespace());
     $builder->setClassName($this->originalClassName);
     $builder->setParentClass("\\" . $this->classmetadata->getNamespace() . "\\" . $this->classmetadata->getName());
     foreach ($this->classmetadata->getMethods() as $method) {
         $builder->addMethod($method);
     }
     $builder->loadProxy();
 }
 /**
  * @param ClassMetadata $class
  * @return string
  */
 private function getFullQualifiedClassName(ClassMetadata $class)
 {
     return '\\' . $class->getNamespace() . '\\' . $class->getName();
 }