editing NamePublisher.java