public static function parseVendorAndPackage($templateName)
    {
        if ($templateName !== null) {
            $nameParts = explode('/', $templateName);

            if (count($nameParts) == 2) {
                if (strlen($nameParts[0]) > 0 && strlen($nameParts[1]) > 0) {
                    return $nameParts;
                }
            }
        }

        throw new InvalidArgumentException('The package name "' . $templateName .
            '" is invalid. Expected format "vendor/package".');
    }