while (e.hasMoreElements())
while (e.hasMoreElements() && res)
    public boolean containsAttributes(AttributeSet a)    {      Enumeration e = a.getAttributeNames();      while (e.hasMoreElements())        {          Object name = e.nextElement();          Object val = a.getAttribute(name);          if (!containsAttribute(name, val))            return false;        }      return true;			    }