Object[] pair = (Object[]) hexToImageCache.get(hex); if (pair == null) { pair = assignMatch(hex, comp);
Image i = hexToImageCache.get(hex); if (i == null) { Object[] pair = assignMatch(hex, comp); return (Image) pair[0];
    public synchronized Image getBase(IHex hex, JComponent comp) {        Object[] pair = (Object[]) hexToImageCache.get(hex);        if (pair == null) {            pair = assignMatch(hex, comp);        }        return (Image) pair[0];    }