public function setCurrentTheme($theme, $deviceType)
    {
        $this->lastTheme = $theme;

        $paths = $this->basePaths;

        // add active theme as Resources/themes/views folder as well.
        $paths[] = $this->path.'/themes/'.$theme;
        $paths[] = $this->path;

        $this->paths = $paths;
    }