else { try { return Long.parseLong(v); } catch (NumberFormatException e) { return defaultValue; }
    public long getLongAttr(String name, long defaultValue) {        String v = getAttr(name);        if (v == null)            return defaultValue;        else {            try {                return Long.parseLong(v);            } catch (NumberFormatException e) {                return defaultValue;            }        }    }