public static function selectTemplateItem(
        $templateState,
        $templateKey
    ) {
        $templateState = (object) $templateState;
        $templateKey = (string) $templateKey;

        $templateItem = $templateState->template->$templateKey;

        return $templateItem;
    }