public function indexAction()
    {
        $config = $this->getServiceLocator()->get('Config');

        if (! $config['ocra_service_manager']['logged_service_manager']
            || ! isset($config['zenddevelopertools']['toolbar']['enabled'])
            || ! $config['zenddevelopertools']['toolbar']['enabled']
        ) {
            throw new BadMethodCallException('Toolbar not enabled, aborting');
        }

        /* @var $request \Zend\Http\Request */
        $request = $this->getRequest();
        $client  = $this->getHttpClient();

        $client->setMethod(Request::METHOD_POST);
        $client->setParameterPost(array(
            'dsl_text' => $request->getPost('dsl_text'),
        ));
        $response = $client->send();

        if (!$response->isSuccess()) {
            throw new \UnexpectedValueException('HTTP Request failed');
        }

        /* @var $redirect \Zend\Mvc\Controller\Plugin\Redirect */
        $redirect = $this->plugin('redirect');

        return $redirect->toUrl('http://yuml.me/' . $response->getBody());
    }