Object staticKey = staticAttributeKeys.get(key); Object staticVal = staticAttributeKeys.get(val);
Object staticKey = readAttributeKeys.get(key);
  public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a)    throws ClassNotFoundException, IOException  {    if (in == null || a == null)      return;        Object key = in.readObject();    Object val = in.readObject();    while (key != null && val != null)      {        Object staticKey = staticAttributeKeys.get(key);        Object staticVal = staticAttributeKeys.get(val);                if (staticKey != null)          key = staticKey;        if (staticVal != null)          val = staticVal;                a.addAttribute(key, val);        key = in.readObject();        val = in.readObject();      }  }