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