if (images.get(key).equals(hash)) {
if (images.get(key) == image) {
    public Object queryImageId(Image image) {        String hash = checksumImage(image);        if (imageCache.get(hash) != null) {            Iterator itr = images.keySet().iterator();            while (itr.hasNext()) {                Object key = itr.next();                if (images.get(key).equals(hash)) {                    //System.out.println("Success: " + key);                    return key;                }            }        }        return Integer.toString(-1);    }