public function postAction(Request $request)
    {
        $name = $request->get('position');

        try {
            if (null == $name) {
                throw new RestException(
                    'There is no position-name for the given name'
                );
            }

            $em = $this->getDoctrine()->getManager();
            $position = new Position();
            $position->setPosition($name);

            $em->persist($position);
            $em->flush();

            $view = $this->view($position, 200);
        } catch (EntityNotFoundException $enfe) {
            $view = $this->view($enfe->toArray(), 404);
        } catch (RestException $re) {
            $view = $this->view($re->toArray(), 400);
        }

        return $this->handleView($view);
    }