public void attachAll(Iterable<AppState> states) {
        synchronized (this.states) {
            for (AppState state : states) {
                attach(state);
            }
        }
    }
Attaches many state to the AppStateManager in a way that is guaranteed
that they will all get initialized before any of their updates are run.
The same state cannot be attached twice and will be ignored.

@param states The states to attach
jme3-core/src/main/java/com/jme3/app/state/AppStateManager.java