private function generateNewView($dir)
    {
        $this->renderFile('views/new.html.twig', $dir.'/new.html.twig', array(
            'dir' => $this->skeletonDir,
            'route_prefix' => $this->routePrefix,
            'route_name_prefix' => $this->routeNamePrefix,
            'document' => $this->document,
            'actions' => $this->actions,
        ));
    }