Sonar fix: NS.java

Fixed sonar issues/code-smells across this file

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