@Override
    @SuppressWarnings("unchecked")
    public ArrayList<Savable>[] readSavableArrayListArray(String name, ArrayList[] defVal) throws IOException {
        Savable[][] savableArray2D = readSavableArray2D(name, null);

        if (savableArray2D == null) {
            return defVal;
        }

        ArrayList<Savable>[] savableArrayListArray = new ArrayList[savableArray2D.length];
        for (int i = 0; i < savableArray2D.length; i++) {
            if (savableArray2D[i] != null) {
                savableArrayListArray[i] = new ArrayList(Arrays.asList(savableArray2D[i]));
            }
        }

        return savableArrayListArray;
    }
Part of the jME XML IO system as introduced in the Google Code jmexml project.

@author Kai Rabien (hevee) - original author of the code.google.com jmexml project
@author Doug Daniels (dougnukem) - adjustments for jME 2.0 and Java 1.5
@author blaine
jme3-plugins/src/xml/java/com/jme3/export/xml/DOMInputCapsule.java