JSONArray a = barcodes.getJSONArray("barcodes");
// make sure there are no duplicates and order the strings
// by putitng the codes in a treeset
TreeSet<String> hcodes = new TreeSet<String>();
hcodes.addAll(Arrays.asList((String[]) a.toArray(new String[0])));
StringBuilder sb = new StringBuilder();
sb.append("<div style='width: 100%;'>");
sb.append("<form action='/miso/pool/ls454/import' method='post'>");
sb.append(processEmPcrDilutions(hcodes));