Generalization to allow use by Mqtt Provider