code: public ClientWmsLayerInfo createClientWmsLayerInfo(WmsSelectedLayerInfo wmsSelectedLayerInfo, MapWidget mapWidget) {
  		WmsLayerConfiguration wmsConfig = new WmsLayerConfiguration();
  		wmsConfig.setFormat("image/png");
  		wmsConfig.setLayers(wmsSelectedLayerInfo.getWmsLayerInfo().getName());
  		wmsConfig.setVersion(wmsSelectedLayerInfo.getWmsVersion());
  		wmsConfig.setBaseUrl(wmsSelectedLayerInfo.getBaseWmsUrl());
  		wmsConfig.setTransparent(true);
  		wmsConfig.setMaximumResolution(Double.MAX_VALUE);
  		wmsConfig.setMinimumResolution(1 / mapWidget.getMapModel().getMapInfo().getMaximumScale());
  		wmsConfig.setCrs(mapWidget.getMapModel().getCrs());
  
  		Bbox bounds = wmsSelectedLayerInfo.getWmsLayerInfo().getBoundingBox(mapWidget.getMapModel().getCrs());
  		if (bounds == null) {
  			bounds = mapWidget.getMapModel().getMapInfo().getInitialBounds();
  		}
  		TileConfiguration tileConfig = new TileConfiguration(256, 256, new Coordinate(bounds.getX(), bounds.getY()),
  				mapWidget.getMapModel().getMapView().getResolutions());
  
  		ClientWmsLayer wmsLayer = new ClientWmsLayer(wmsSelectedLayerInfo.getName(), mapWidget.getMapModel().getCrs(),
  				wmsConfig, tileConfig, wmsSelectedLayerInfo.getWmsLayerInfo());
  
  		ClientWmsLayerInfo wmsLayerInfo = new ClientWmsLayerInfo(wmsLayer);
  		return wmsLayerInfo;
  	}
docs: Factory method for {@link ClientWmsLayerInfo} from
  {@link org.geomajas.widget.layer.client.presenter.WmsSelectedLayerInfo} and {@link MapWidget}.
  Could be a static method in a util class.
  
  @param wmsSelectedLayerInfo
  @param mapWidget
  @return