public void setAttributes(HashMap<AttributeKey, Object> map) {
public void setAttributes(Map<AttributeKey, Object> map) {
    public void setAttributes(HashMap<AttributeKey, Object> map) {        for (Map.Entry<AttributeKey, Object> entry : map.entrySet()) {            setAttribute(entry.getKey(), entry.getValue());        }    }