public static function createNameByFields($strLanguage, array $arrData)
    {
        if ($strLanguage)
        {
            \Controller::loadLanguageFile('default', $strLanguage, true);
        }

        $strName = '';

        if ($arrData['firstname'])
        {
            $strName = $arrData['firstname'] . ($arrData['lastname'] ? ' ' . $arrData['lastname'] : '');
        }
        elseif ($arrData['lastname'])
        {
            $strName = $arrData['lastname'];
        }

        if ($strName && $arrData['academicTitle'])
        {
            $strName = $arrData['academicTitle'] . ' ' . $strName;
        }

        if ($strName && $arrData['additionalTitle'])
        {
            $strName = $arrData['additionalTitle'] . ' ' . $strName;
        }

        if ($arrData['lastname'] && $arrData['gender'] && ($strLanguage != 'en' || !$arrData['academicTitle']))
        {
            $strGender = $GLOBALS['TL_LANG']['MSC']['haste_plus']['gender' . ($arrData['gender'] == 'female' ? 'Female' : 'Male')];

            $strName = $strGender . ' ' . $strName;
        }

        if ($strLanguage)
        {
            \Controller::loadLanguageFile('default', $GLOBALS['TL_LANGUAGE'], true);
        }

        return $strName;
    }