code: public WmsLayer createLayer(String title, String crs, TileConfiguration tileConfig,
  								WmsLayerConfiguration layerConfig, WmsLayerInfo layerInfo) {
  		if (layerInfo == null || layerInfo.isQueryable()) {
  			return new FeatureInfoSupportedWmsLayer(title, crs, layerConfig, tileConfig, layerInfo);
  		} else {
  			return new WmsLayerImpl(title, crs, layerConfig, tileConfig, layerInfo);
  		}
  	}
docs: Create a new WMS layer. This layer does not support a GetFeatureInfo call! If you need that, you'll have to use
  the server extension of this plug-in.
  
  @param title       The layer title.
  @param crs         The CRS for this layer.
  @param tileConfig  The tile configuration object.
  @param layerConfig The layer configuration object.
  @param layerInfo   The layer info object. Acquired from a WMS GetCapabilities. This object is optional.
  @return A new WMS layer.