public void navigateOut(final TeamExplorerNavigationItemConfig currentNavItem){
  Check.isTrue(currentItemBufferIndex >= 0,"currentItemBufferIndex >= 0");
  final List<TeamExplorerNavigationItemConfig> navItemsToRemove=new ArrayList<TeamExplorerNavigationItemConfig>();
  for (  final TeamExplorerNavigationItemConfig item : navigationBuffer) {
    if (item.equals(currentNavItem)) {
      navItemsToRemove.add(item);
    }
  }
  navigationBuffer.removeAll(navItemsToRemove);
  currentItemBufferIndex=navigationBuffer.size() - 1;
  nextNavigation=null;
  fireNavigationBufferChangedEvent();
  doNavigation(getCurrentItem());
}

public void navigateOut ( final TeamExplorerNavigationItemConfig currentNavItem ) { Check . isTrue ( currentItemBufferIndex >= 0 , "currentItemBufferIndex >= 0" ) ; final List < TeamExplorerNavigationItemConfig > navItemsToRemove = new ArrayList < TeamExplorerNavigationItemConfig > ( ) ; for ( final TeamExplorerNavigationItemConfig item : navigationBuffer ) { if ( item . equals ( currentNavItem ) ) { navItemsToRemove . add ( item ) ; } } navigationBuffer . removeAll ( navItemsToRemove ) ; currentItemBufferIndex = navigationBuffer . size ( ) - 1 ; nextNavigation = null ; fireNavigationBufferChangedEvent ( ) ; doNavigation ( getCurrentItem ( ) ) ; }
delete current navigation item in the navigate buffer and navigate to the most recent page
