public function getRemoting()
    {
        $apiStr = sprintf("Ext.app.REMOTING_API =%s;", $this);

        $response = new Response($apiStr);

        // set the response header
        $response->headers->set('Content-Type', 'text/javascript');

        // return the response
        return $response;
    }