UID ui = new UID((String)oi);
UID ui = UID.toUID((String)oi);
  private static Set getSearchUIDs(      HttpInput queryParameters) {    // see if data was posted    if (!(queryParameters.hasBody())) {      return null;    }    // get the posted Object    Object postObj;    try {      postObj = queryParameters.getBodyAsObject();    } catch (Exception e) {      throw new IllegalArgumentException(          "Expecting a POSTED Serialized \"java.util.List\": "+          e.getMessage());    }    // make sure that a List was posted    if (!(postObj instanceof List)) {      throw new IllegalArgumentException(          "POSTED Object is not a \"java.util.List\": "+          ((postObj != null) ? postObj.getClass().getName() : "null"));    }    List postUIDs = (List)postObj;    int nPostUIDs = postUIDs.size();    // parse Strings to a Set of UIDs    Set toSet = new HashSet(nPostUIDs);    for (int i = 0; i < nPostUIDs; i++) {      Object oi = postUIDs.get(i);      if (!(oi instanceof String)) {        throw new IllegalArgumentException(            "POSTED List["+i+"] contains a non-String:"+            ((oi != null) ? oi.getClass().getName() : "null"));      }      UID ui = new UID((String)oi);  // okay if deprecated      toSet.add(ui);    }    // return the Set of UIDs    return toSet;  }