option = recovery.getAttribute("log-dir");
option = recovery.getAttribute("sync-on-commit"); value = true; if (option != null) { value = option.equals("yes"); } setProperty("db-connection.recovery.sync-on-commit", new Boolean(value));  option = recovery.getAttribute("journal-dir");
    private void configureRecovery(NodeList nodes) {        Element recovery = (Element) nodes.item(0);        String option = recovery.getAttribute("enabled");        boolean value = true;        if (option != null) {            value = option.equals("yes");        }        setProperty("db-connection.recovery.enabled", new Boolean(value));                option = recovery.getAttribute("log-dir");        if (option != null)            setProperty("db-connection.recovery.log-dir", option);    }