public void load(String preferencesKey) throws BackingStoreException {
        Preferences prefs = Preferences.userRoot().node(preferencesKey);
        String[] keys = prefs.keys();
        if (keys != null) {
            for (String key : keys) {
                if (key.charAt(1) == '_') {
                    // Try loading using new method
                    switch (key.charAt(0)) {
                        case 'I':
                            put(key.substring(2), prefs.getInt(key, 0));
                            break;
                        case 'F':
                            put(key.substring(2), prefs.getFloat(key, 0f));
                            break;
                        case 'S':
                            put(key.substring(2), prefs.get(key, null));
                            break;
                        case 'B':
                            put(key.substring(2), prefs.getBoolean(key, false));
                            break;
                        default:
                            throw new UnsupportedOperationException(
                                "Undefined setting type: " + key.charAt(0)
                            );
                    }
                } else {
                    // Use old method for compatibility with older preferences
                    // TODO: Remove when no longer necessary
                    Object defaultValue = defaults.get(key);
                    if (defaultValue instanceof Integer) {
                        put(key, prefs.getInt(key, (Integer) defaultValue));
                    } else if (defaultValue instanceof String) {
                        put(key, prefs.get(key, (String) defaultValue));
                    } else if (defaultValue instanceof Boolean) {
                        put(key, prefs.getBoolean(key, (Boolean) defaultValue));
                    }
                }
            }
        }
    }
Loads settings previously saved in the Java preferences.

@param preferencesKey The preferencesKey previously used to save the settings.
@throws BackingStoreException If an exception occurs with the preferences

@see #save(java.lang.String)
jme3-core/src/main/java/com/jme3/system/AppSettings.java