/**
  * Initialize the object.
  * 
  * @param \Symfony\Component\Container $container
  * @param string $controller
  */
 public function __construct($container, $controller)
 {
     try {
         $this->reflection = new \ReflectionClass($controller);
     } catch (Exception $e) {
         throw new ExtJSException(sprintf("Reflection creation failed for %s with message: ", $controller, $e->getMessage()));
     }
     $this->container = $container;
     $this->remoteAttribute = $container->getParameter('direct.api.remote_attribute');
     $this->formAttribute = $container->getParameter('direct.api.form_attribute');
     $this->api = $this->createApi();
 }
 /**
  * Initialize the object.
  * 
  * @param \Symfony\Component\Container $container
  * @param string $controller
  */
 public function __construct($container, $controller)
 {
     try {
         $this->reflection = new \ReflectionClass($controller);
     } catch (Exception $e) {
         // @todo: throw an exception
     }
     $this->container = $container;
     $this->remoteAttribute = $container->getParameter('direct.api.remote_attribute');
     $this->formAttribute = $container->getParameter('direct.api.form_attribute');
     $this->api = $this->createApi();
 }