protected Joint select(Geometry g) {
        if (g == null) {
            resetSelection();
            return null;
        }
        Joint j = geomToJoint.get(g);
        if (j != null) {
            if (selectedJoint == j) {
                return null;
            }
            resetSelection();
            selectedJoint = j;
            Geometry[] geomArray = jointToGeoms.get(selectedJoint);
            setColor(geomArray[0], selectedColorJ);

            if (geomArray[1] != null) {
                setColor(geomArray[1], selectedColor);
            }

            if (geomArray[2] != null) {
                setColor(geomArray[2], baseColor);
            }
            return j;
        }
        return null;
    }
Creates a wire with bone lengths data. If the data is supplied then the
wires will show each full bone (from head to tail).

@param armature the armature that will be shown
@param joints the Node to visualize joints
@param wires the Node to visualize wires
@param outlines the Node to visualize outlines
@param deformingJoints a list of joints
jme3-core/src/main/java/com/jme3/scene/debug/custom/ArmatureNode.java