fixing the double node entry issue and some refactoring
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/airavata