private void displayErrorInMessageBox(String title, String message) {
   GwtMessageBox messageBox = new GwtMessageBox();
   messageBox.setTitle(title);
   messageBox.setMessage(message);
   messageBox.setButtons(new Object[GwtMessageBox.ACCEPT]);
   messageBox.setAcceptLabel(Messages.getString("close"));
   messageBox.setWidth(300);
   messageBox.show();
 }
 private void checkForError(String title, Response response) {
   if (response != null && response.getText() != null && response.getText().length() > 0) {
     GwtMessageBox messageBox = new GwtMessageBox();
     messageBox.setTitle(title);
     messageBox.setMessage(response.getText());
     messageBox.setButtons(new Object[GwtMessageBox.ACCEPT]);
     messageBox.setAcceptLabel(Messages.getString("close"));
     messageBox.setWidth(300);
     messageBox.show();
   }
 }