a lot of code logic relate to find target brokerName in queueData list. this can be replaced by add a mapping from brokerName to queueData.