private static boolean isExcluded(Spatial s,Spatial exclude){
  if (s.equals(exclude)) {
    return true;
  }
  if (s.getParent() != null) {
    return isExcluded(s.getParent(),exclude);
  }
  return false;
}

private static boolean isExcluded ( Spatial s , Spatial exclude ) { if ( s . equals ( exclude ) ) { return true ; } if ( s . getParent ( ) != null ) { return isExcluded ( s . getParent ( ) , exclude ) ; } return false ; }
is the selected spatial the one we want to exclude from the picking ? recursively looks up the parents to find out .
