public int getBoneIndex(String name) {
        for (int i = 0; i < boneList.length; i++) {
            if (boneList[i].getName().equals(name)) {
                return i;
            }
        }

        return -1;
    }
returns the bone index of the bone that has the given name

@param name the name to search for
@return the index (&ge;0) or -1 if not found
jme3-core/src/main/java/com/jme3/animation/Skeleton.java