@SuppressWarnings("unchecked")
    public <T extends Control> T getControl(Class<T> controlType) {
        for (Control c : controls.getArray()) {
            if (controlType.isAssignableFrom(c.getClass())) {
                return (T) c;
            }
        }
        return null;
    }
Returns the first control that is an instance of the given class,
or null if no such control exists.

@param <T> the type of control to look for
@param controlType The superclass of the control to look for.
@return The first instance in the list of the controlType class, or null.

@see Spatial#addControl(com.jme3.scene.control.Control)
jme3-core/src/main/java/com/jme3/scene/Spatial.java