if (Constants.IMAGES_CACHE_WEAK_MAP_ENABLED) {
if (Constants.IMAGES_WEAK_MAP_CACHE_ENABLED) {
    public BasicImagesCache(int maxCacheSize) {        this.maxCacheSize = maxCacheSize;        caches = new HashMap(maxCacheSize + 2);        LOG.debug("Set max cache size to " + maxCacheSize + ".");        if (Constants.IMAGES_CACHE_WEAK_MAP_ENABLED) {            weakCache = new WeakHashMap(maxCacheSize);            LOG.debug("Create a weak map initialized with size of "                    + maxCacheSize + ".");        } else {            weakCache = null;        }    }