}
    public Object getAttribute(Object key)    {      for (int i = 0; i < attrs.length; i += 2)        {          if (attrs[i].equals(key))            return attrs[i+1];        }                  Object p = getResolveParent();      if (p != null && p instanceof AttributeSet)        return (((AttributeSet)p).getAttribute(key));            return null;    }