@Override
  public void deleteItemsAction() {
    final ModelData item = getSelectedItem();
    final ProjectBean projectBean = GXTUtils.convertModelDataToBean(item, new ProjectBean());

    List<ModelData> models = getSelectedItems();
    if (confirmDelete(models) && models.size() > 0) {
      ProjectService.Util.getInstance()
          .checkProject(
              projectBean,
              new AsyncCallback() {

                public void onFailure(Throwable e) {
                  if (com.google.gwt.user.client.Window.confirm(e.getLocalizedMessage())) {
                    getService().delete(projectBean);
                  }
                }

                public void onSuccess(Object object) {
                  getService().delete(projectBean);
                }
              });
    }
  }
 @Override
 protected void onRefresh(AsyncCallback<List<ProjectBranchBean>> asyncCallback) {
   ProjectService.Util.getInstance().getReferenceProjects(asyncCallback);
 }