private void findTargets(Node node) {
        for (Spatial child : node.getChildren()) {
            if (child instanceof Geometry) {
                findTargets((Geometry) child);
            } else if (child instanceof Node) {
                findTargets((Node) child);
            }
        }
    }
If specified the geometry has an animated mesh, add its mesh and material
to the lists of animation targets.
jme3-core/src/main/java/com/jme3/animation/SkeletonControl.java