Changed to make it forward/backward compatible with the declareQueue and declareExchange