}
//TODO this is a temporary implementation. Should work with hash table or check server
public static Object findByUniqueId(Object find, Collection container) {
Iterator i = container.iterator();
long uniqueId = ((Long)find).longValue();
HasKey current;
while (i.hasNext()) {
current = (HasKey)i.next();
if (current.getUniqueId() == uniqueId)
return current;
}
return null;
}