void onResourceDeleted(@Observes final ResourceDeletedEvent deletedEvent) {
   if (path != null && path.equals(deletedEvent.getPath())) {
     if (sessionInfo.getId().equals(deletedEvent.getSessionInfo().getId())) {
       executeDeleteCommands();
     } else {
       executeConcurrentDeleteCommand(
           deletedEvent.getPath(),
           deletedEvent.getSessionInfo().getId(),
           deletedEvent.getSessionInfo().getIdentity());
     }
   }
 }
  // Refresh when a Resource has been deleted, if it exists in the active package
  public void onResourceDeleted(@Observes final ResourceDeletedEvent event) {
    if (!getView().isVisible()) {
      return;
    }
    final Path resource = event.getPath();
    if (resource == null) {
      return;
    }
    if (!Utils.isInFolderItem(activeFolderItem, resource)) {
      return;
    }

    explorerService
        .call(
            new RemoteCallback<FolderListing>() {
              @Override
              public void callback(final FolderListing folderListing) {
                getView().setItems(folderListing);
              }
            },
            new DefaultErrorCallback())
        .getFolderListing(
            activeOrganizationalUnit,
            activeRepository,
            activeProject,
            activeFolderItem,
            getActiveOptions());
  }