protected function getInputFileExtension($includeDot = true)
    {
        $extension = pathinfo($this->getView()->getInputFile(), PATHINFO_EXTENSION);

        if ($includeDot && $extension != '') {
            return '.' . $extension;
        }

        return $extension;
    }