public void passivate( final AsyncCallback<Boolean> callback ) {
if ( isDirty ) {
MessageDialogBox messageBox = new MessageDialogBox( Messages.getString( "confirm" )
, Messages.getString( "dirtyStateMessage" ), false, false, true, Messages.getString( "yes" ), null
, Messages.getString( "no" ) );
messageBox.setCallback( new IDialogCallback() {
@Override
public void okPressed() {
if ( isPortValid( portTextBox.getValue() ) ) {
setEmailConfig();