protected void createWmsLayers(){
  wmsLayerByName.clear();
  wmsLayers.clear();
  for (int i=0; i < layers.length; i++) {
    Layer layer=layers[i];
    createWmsLayers(wmsLayerFactory.createWmsLayer(layer));
  }
}

protected void createWmsLayers ( ) { wmsLayerByName . clear ( ) ; wmsLayers . clear ( ) ; for ( int i = 0 ; i < layers . length ; i ++ ) { Layer layer = layers [ i ] ; createWmsLayers ( wmsLayerFactory . createWmsLayer ( layer ) ) ; } }
for each layer managed by imageserver create corresponding iwmslayer which contains additional information for wms service about given openmap layer . for layers that already implement iwmslayer , the instances will be the same .
