Add getMessageSource method.