Revert "Changed the access modifier NamePublisher class"

This reverts commit 224510b80f0ba23912a5365abd9c7873f7fe5ec1.