Changed the access modifier NamePublisher class

public -> private