protected Type GetMessageType(IConfigurationSection configSection)
        {
            var typeName = configSection.GetSection("MessageType").Value;

            if (typeName == null)
            {
                return(typeof(object));
            }

            return(_typeFinder.FindClassOrInterface(typeName));
        }