@Override
    public void write(int[][] value, String name, int[][] defVal) throws IOException {
        if (!Arrays.deepEquals(value, defVal)) {
            writePrimitiveArray2DHelper(value, name);
        }
    }
appends a new Element with the given name to currentElement, sets
currentElement to be new Element, and returns the new Element as well
jme3-plugins/src/xml/java/com/jme3/export/xml/DOMOutputCapsule.java