code: private static TileConfiguration createTileConfiguration(MapConfiguration mapConfig,
  			ClientVectorLayerInfo layerInfo, final ViewPort viewPort) {
  		TileConfiguration tileConfig = new TileConfiguration();
  		ClientMapInfo mapInfo = mapConfig.getHintValue(GeomajasServerExtension.MAPINFO);
  		tileConfig.setTileWidth(mapInfo.getPreferredPixelsPerTile().getWidth());
  		tileConfig.setTileHeight(mapInfo.getPreferredPixelsPerTile().getHeight());
  		List<Double> resolutions = new ArrayList<Double>();
  		for (int i = 0; i < viewPort.getResolutionCount(); i++) {
  			resolutions.add(viewPort.getResolution(i));
  		}
  		tileConfig.setResolutions(resolutions);
  		if (layerInfo.getMaxExtent() != null) {
  			tileConfig.setTileOrigin(BboxService.getOrigin(layerInfo.getMaxExtent()));
  		} else {
  			tileConfig.setTileOrigin(new Coordinate());
  		}
  		return tileConfig;
  	}
docs: Create the tile configuration