int x = xScreenUpperLeft + (i - iMin) * screenWidth;
int y = yScreenUpperLeft - (j - jMin) * screenHeight;
RasterTile image = new RasterTile(new Bbox(x, -y, screenWidth, screenHeight),
tileServiceState.getId() + "." + zoomLevel + "." + i + "," + j);
image.setCode(new TileCode(zoomLevel, i, j));
String url = tileServiceState.getUrlSelectionStrategy().next();
url = url.replace("${level}", Integer.toString(zoomLevel));
url = url.replace("${x}", Integer.toString(i));
url = url.replace("${y}", Integer.toString(j));
image.setUrl(url);