code: private void closeCurrent() {
  	if (components.size() > 0) {
  	  Component component = components.remove(components.size() - 1);
  	  getModalPanel().removeAll();
  	  fireCloseActionListener(listeners.get(component));
  	  listeners.remove(component);
  
  	  if (components.size() > 0) {
  		showNextComponent();
  	  } else {
  		restoreRootPane();
  	  }
  	}
    }
docs: Close the current modal.