+            if (node.getGourpId() != null) {
+                if (node.getGourpId().equals("testGroupId")) {

should be implemented as

if ("testGroupId".equals(node.getGourpId())) {