fixing pmd in NameManager