public <T extends AppState> T getState(Class<T> stateClass) {
        return getState(stateClass, false);
    }
Returns the first state that is an instance of subclass of the specified class.

@param <T> the desired type of AppState
@param stateClass the desired type of AppState
@return First attached state that is an instance of stateClass
jme3-core/src/main/java/com/jme3/app/state/AppStateManager.java