private function extractFileNameBase($filePath)
    {
        $directories = explode('/', $filePath);
        $fileName = array_pop($directories);
        $fileNameParts = explode('.', $fileName);
        if (count($fileNameParts) > 1) {
            $extension = array_pop($fileNameParts);
        }
        $result = implode('.', $fileNameParts);
        return $result;
    }