There are two redundancy statement code 1. getPublishTopicList():can replace with hashmap constructor 2. subscriptions(): can replace with hashmap constructor