if (this instanceof Window && ((Container) this).isFocusCycleRoot ()) return (Container) this;
  public Container getFocusCycleRootAncestor ()  {    if (this instanceof Window	&& ((Container) this).isFocusCycleRoot ())      return (Container) this;    Container parent = getParent ();    while (parent != null	   && !parent.isFocusCycleRoot ())      parent = parent.getParent ();    return parent;	}