code: protected void checkReferencesToRemovedElement(final String id) {
  
          if (id != null) {
              //NOTE: We only use an RPC call here to check for references on the server side. If, at a later point, we decide
              //to add a save button again, this will have to be changed, because then we have to consider client-side state.
              CmsRpcAction<CmsRemovedElementStatus> getStatusAction = new CmsRpcAction<CmsRemovedElementStatus>() {
  
                  @Override
                  public void execute() {
  
                      start(200, true);
                      getContainerpageService().getRemovedElementStatus(id, null, this);
                  }
  
                  @Override
                  public void onResponse(final CmsRemovedElementStatus status) {
  
                      stop(false);
                      if (status.isDeletionCandidate()) {
                          askWhetherRemovedElementShouldBeDeleted(status);
  
                      }
                  }
  
              };
              getStatusAction.execute();
  
          }
      }
docs: Checks that a removed can be possibly deleted and if so, asks the user if it should be deleted.<p>
  
  @param id the client id of the element