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