if (!(postObj instanceof List)) { throw new IllegalArgumentException( "POSTED Object is not a \"java.util.List\": "+ ((postObj != null) ? postObj.getClass().getName() : "null"));
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();   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 = UID.toUID((String)oi); toSet.add(ui); }   return toSet;
  private static Set getSearchUIDs(Object postObj) {        // 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"));    }        // parse vector of params into a set of uids    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 = UID.toUID((String)oi);      toSet.add(ui);    }        // return the Set of UIDs    return toSet;  }