Initialize bean for MessageResource