public function createTemplate($layoutId, $includeWidgets, $name, $tags, $description)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->layoutId = $layoutId;
        $this->includeWidgets = $includeWidgets;
        $this->name = $name;
        $this->tags = $tags;
        $this->description = $description;
        $this->getLogger()->info('Creating Template ' . $name . ' from layout ID ' . $layoutId);
        $response = $this->doPost('/template/' . $layoutId, $this->toArray());

        return $this->hydrate($response);
    }