/**
  * Do the ExtDirect routing processing.
  *
  * @return JSON
  */
 public function route()
 {
     $batch = array();
     foreach ($this->request->getCalls() as $call) {
         $batch[] = $this->dispatch($call);
     }
     return $this->response->encode($batch);
 }