// the EJB returns a HashMap of key/value pairs, each key being
// a searchID, and value being the name. Not the best way to send
// this data to the JSP. So here, I'll iterate the HashMap, and create
// an ArrayList of LabelValueBeans
Set keys = searchListDb.keySet();
Iterator keyIter = keys.iterator();
while (keyIter.hasNext()) {
Number key = (Number)keyIter.next();
String value = (String)searchListDb.get(key);
LabelValueBean searchPair = new LabelValueBean(value, String.valueOf(key));