@Override
    public final void initialize(AppStateManager stateManager, Application app) {
        log.log(Level.FINEST, "initialize():{0}", this);

        this.app = app;
        initialized = true;
        initialize(app);
        if (isEnabled()) {
            log.log(Level.FINEST, "onEnable():{0}", this);
            onEnable();
        }
    }
Do not call directly: Called by the state manager to initialize this
 state post-attachment.
 This implementation calls initialize(app) and then onEnable() if the
 state is enabled.
jme3-core/src/main/java/com/jme3/app/state/BaseAppState.java