private void unsuspendCase(String caseID) {
   connect();
   try {
     List<WorkItemRecord> wirList = _ibClient.getWorkItemsForCase(caseID, _handle);
     for (WorkItemRecord i : wirList) {
       if (i.getStatus().equalsIgnoreCase("Suspended")) {
         _ibClient.unsuspendWorkItem(i.getID(), _handle);
       }
     }
   } catch (IOException e1) {
     e1.printStackTrace();
   }
 }
  public void withdrawOffer(WorkItemRecord wir, HashSet<Participant> offeredSet) {
    if (offeredSet != null) {
      for (Participant p : offeredSet) {
        p.getWorkQueues().removeFromQueue(wir, WorkQueue.OFFERED);
        _rm.announceModifiedQueue(p.getID());
      }
    }

    // a fired instance of a multi-instance workitem on the unoffered queue will
    // never have been offered, so the warning should be suppressed for those
    else if (!wir.getStatus().equals(WorkItemRecord.statusFired)) {
      _log.warn(
          "Workitem '"
              + wir.getID()
              + "' does not have 'Offered' status, "
              + "or is no longer active");
    }
  }