Sonar fix: NS.java

Fixed sonar issues/code-smells across this file

Issue-ID: AAF-704
Change-Id: Ice035ce50a0dc2ebe024cbd91bf62e0e920d5d4c
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
1 file changed