@Override
    public Savable readSavable(String name, Savable defVal) throws IOException {
        Savable ret = defVal;

        if (name != null && name.equals(""))
            logger.warning("Reading Savable String with name \"\"?");

        Element old = currentElement;

        if (isAtRoot) {
            currentElement = doc.getDocumentElement();
            isAtRoot = false;
        } else {
            currentElement = findChildElement(name);
        }

        ret = readSavableFromCurrentElement(defVal);

        currentElement = old;

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