option = recovery.getAttribute("size"); if (option != null) { if (option.endsWith("M") || option.endsWith("m")) option = option.substring(0, option.length() - 1); try { Integer size = new Integer(option); setProperty("db-connection.recovery.size-limit", size); } catch (NumberFormatException e) { throw new DatabaseConfigurationException("size attribute in recovery section needs to be a number"); } }
    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("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");        if (option != null)            setProperty("db-connection.recovery.journal-dir", option);    }