throws ConfigError {
throws ConfigError, FieldConvertError {
    private int getDay(SessionSettings settings, SessionID sessionID, String key, int defaultValue)            throws ConfigError {        if (!settings.isSetting(sessionID, key)) {            return defaultValue;        }        String value = settings.getString(sessionID, key);        if (value.length() >= 2) {            String abbr = value.substring(0, 2);            if (abbr.equals("su"))                return 1;            if (abbr.equals("mo"))                return 2;            if (abbr.equals("tu"))                return 3;            if (abbr.equals("we"))                return 4;            if (abbr.equals("th"))                return 5;            if (abbr.equals("fr"))                return 6;            if (abbr.equals("sa"))                return 7;        }        throw new ConfigError("invalid format for day (use su,mo,tu,we,th,fr,sa): '" + value + "'");    }