@Override
    public void initialize(AppStateManager stateManager, Application app) {
        initialized = true;
    }
<code>initialized</code> is set to true when the method
{@link AbstractAppState#initialize(com.jme3.app.state.AppStateManager, com.jme3.app.Application) }
is called. When {@link AbstractAppState#cleanup() } is called, <code>initialized</code>
is set back to false.
jme3-core/src/main/java/com/jme3/app/state/AbstractAppState.java