code: private static void closeCurrentModal_(RootPaneContainer rootPane) {
  	synchronized (modals) {
  	  Modal modal = modals.get(rootPane);
  	  if (modal != null) {
  		modal.closeCurrent();
  		if (modal.getSize() == 0) {
  		  modals.remove(rootPane);
  		}
  	  }
  	}
    }
docs: Close the current modal component of a specific RootPaneContainer.
  
  @param rootPane
  the RootPaneContainer with a modal