protected function GetMessages($aMessageConsumerToCheck)
    {
        $sMessages = '';
        $oMsgManager = TCMSMessageManager::GetInstance();

        foreach ($aMessageConsumerToCheck as $sMessageConsumer) {
            if ($oMsgManager->ConsumerHasMessages($sMessageConsumer)) {
                $sMessages .= $oMsgManager->RenderMessages($sMessageConsumer);
            }
        }

        return $sMessages;
    }