int visiblePanelIndex = MantleXul.getInstance().getAdminContentDeck().getVisibleWidget();
if ( visiblePanelIndex >= 0 ) {
String visiblePanelId =
MantleXul.getInstance().getAdminContentDeck().getWidget( visiblePanelIndex ).getElement().getId();
if ( ( visiblePanelId != null ) && !visiblePanelId.equals( idOfSecurityPanelToBeActivated ) ) {
ISysAdminPanel sysAdminPanel = sysAdminPanelsMap.get( visiblePanelId );
if ( sysAdminPanel != null ) {
sysAdminPanel.passivate( new AsyncCallback<Boolean>() {
public void onFailure( Throwable caught ) {
}
public void onSuccess( Boolean passivateComplete ) {
if ( passivateComplete ) {