TileSet tileset = new WMTTileSetWrapper(wmtSource);
String value = CatalogPlugin.getDefault().getPreferenceStore().getString(PreferenceConstants.P_WMSCTILE_CACHING);
if (value.equals(WMSCTileCaching.ONDISK.toString())) {
String dir = CatalogPlugin.getDefault().getPreferenceStore().getString(PreferenceConstants.P_WMSCTILE_DISKDIR);
WMTTileImageReadWriter tileReadWriter = new WMTTileImageReadWriter(dir);
range = new TileRangeOnDisk(null, tileset, renderJob.getMapExtentTileCrs(),
tileList, requestTileWorkQueue, writeTileWorkQueue, tileReadWriter);
} else {
range = new TileRangeInMemory(null, tileset, renderJob.getMapExtentTileCrs(),