if (spatialNodes.get(i) instanceof Spatial) j++;
if (spatialNodes.get(i) != null ) j++;
    private int findIndex(String name) {        int j=0;        for (int i=0;i<spatialNodesNames.size();i++){            if (spatialNodesNames.get(i).equals(name)) return j;            if (spatialNodes.get(i) instanceof Spatial) j++;        }        throw new JmeException("Logic error.  Unknown keyframe name " + name);    }