if ((n.getType() & Spatial.NODE) == 0) return;
if ((n.getType() & SceneElement.NODE) == 0) return;
    private void findDuplicates(Spatial n) {        if (n==null) return;        if (entireScene.containsKey(n)){            if (!sharedObjects.containsKey(n))                sharedObjects.put(n,"sharedSpatial"+totalShared++);            return;        }        entireScene.put(n,null);        evaluateSpatialChildrenDuplicates(n);        if ((n.getType() & Spatial.NODE) == 0) return;        Node temp=(Node)n;        for (int i=temp.getQuantity()-1;i>=0;i--){            findDuplicates(temp.getChild(i));        }    }