code: protected MapConfiguration createTmsMap(Profile profile, int nrOfZoomLevels) {
  		MapConfiguration mapConfiguration = null;
  		switch (profile) {
  			case GLOBAL_GEODETIC:
  				mapConfiguration = createTmsMap("EPSG:4326", CrsType.DEGREES, new Bbox(-180, -90, 360, 180), 256,
  						nrOfZoomLevels);
  				break;
  			case GLOBAL_MERCATOR:
  				mapConfiguration = createTmsMap("EPSG:3857", CrsType.METRIC, new Bbox(-MERCATOR, -MERCATOR,
  						2 * MERCATOR, 2 * MERCATOR), 256, nrOfZoomLevels);
  				break;
  			default:
  				throw new IllegalArgumentException("Local profiles not supported");
  		}
  		mapConfiguration.setHintValue(PROFILE, profile);
  		return mapConfiguration;
  	}
docs: Create a map with one of the default profiles and a specific number of zoom levels (default = 21).
  
  @param profile
  @param nrOfZoomLevels
  @return