if (ancestor != this)
if (ancestor != this && ancestor !=  null)
  public FocusTraversalPolicy getFocusTraversalPolicy ()  {    if (!isFocusCycleRoot ())      return null;    if (focusTraversalPolicy == null)  {        Container ancestor = getFocusCycleRootAncestor ();  	if (ancestor != this)	  return ancestor.getFocusTraversalPolicy ();	else  {	    KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager ();	    return manager.getDefaultFocusTraversalPolicy ();	  }      }    else      return focusTraversalPolicy;  }