@Override
    public ArrayList<FloatBuffer> readFloatBufferArrayList(String name, ArrayList<FloatBuffer> defVal) throws IOException {
        float[][] floatArray2D = readFloatArray2D(name, null);

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

        ArrayList<FloatBuffer> floatBufferList = new ArrayList<>(floatArray2D.length);
        for (float[] floatArray : floatArray2D) {
            if (floatArray == null) {
                floatBufferList.add(null);
            } else {
                floatBufferList.add((FloatBuffer) BufferUtils.createFloatBuffer(floatArray.length).put(floatArray).rewind());
            }
        }

        return floatBufferList;
    }
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