if (a.isDefined(Underline)) return ((Boolean) a.getAttribute(Underline)).booleanValue();
Boolean b = (Boolean) a.getAttribute(Underline); if (b != null) return b.booleanValue();
  public static boolean isUnderline(AttributeSet a)  {    if (a.isDefined(Underline))      return ((Boolean) a.getAttribute(Underline)).booleanValue();    else      return false;      } 