public Map<String, Object> getAttrs(boolean applyDefaults) { if (applyDefaults && mDefaults != null) { Map<String, Object> attrs = new HashMap<String, Object>();  attrs.putAll(mDefaults);  attrs.putAll(mAttrs); return attrs; } else { return mAttrs; }
public Map<String, Object> getAttrs() { return getAttrs(true);
    public Map<String, Object> getAttrs(boolean applyDefaults) {        if (applyDefaults && mDefaults != null) {            Map<String, Object> attrs = new HashMap<String, Object>();            // put the defaults            attrs.putAll(mDefaults);            // override with currently set            attrs.putAll(mAttrs);            return attrs;        } else {            return mAttrs;        }    }