code: private static TileConfiguration createTileConfiguration(ClientRasterLayerInfo layerInfo) {
  		RasterLayerInfo serverLayerInfo = (RasterLayerInfo) layerInfo.getLayerInfo();
  		TileConfiguration tileConfig = new TileConfiguration();
  		tileConfig.setTileWidth(serverLayerInfo.getTileWidth());
  		tileConfig.setTileHeight(serverLayerInfo.getTileHeight());
  		if (serverLayerInfo.getResolutions().size() > 0) {
  			// use resolutions of server for raster layer (as yet not reprojectable)
  			tileConfig.setResolutions(serverLayerInfo.getResolutions());
  		} else {
  			// if no resolutions, fall back to quad tree numbers
  			ArrayList<Double> resolutions = new ArrayList<Double>();
  			for (int i = 0; i < 50; i++) {
  				resolutions
  						.add(layerInfo.getMaxExtent().getWidth() / (serverLayerInfo.getTileWidth() * Math.pow(2, i)));
  				tileConfig.setResolutions(resolutions);
  			}
  		}
  		tileConfig.setTileOrigin(BboxService.getOrigin(layerInfo.getMaxExtent()));
  		return tileConfig;
  	}
docs: Create the tile configuration