Object obj = GfrBasicLayerFactory.s_createComponent(caps, params);
if (obj == null)
return null;
GfrLyrWMSTiledImageLayer objLayer = (GfrLyrWMSTiledImageLayer) obj;
String strErrorCheck = objLayer.getErrorCheck();
if (strErrorCheck != null)
{
GfrSetRlrTopMainOgcWmssSel._LOGGER_.warning(strErrorCheck);
// TODO: send event to registered listeners
return null;
}
LayerList llt = super._cnv.getModel().getLayers();
llt.add(objLayer);
objLayer.setIdParent(strIdParent);
objLayer.setUniqueIdGtr(strId);
boolean bln = GfrWrpObjSttSngGlbSel.getInstance().isEnabled(strId);
objLayer.setEnabled(bln);
return obj;
}