code: protected ListGridRecord createAndFillListGridRecord(Layer layer) {
  		ListGridRecord record = new ListGridRecord();
  		record.setAttribute(FLD_LABEL, layer.getLayerInfo().getLabel());
  		record.setAttribute(FLD_VISIBILITY, layer.isShowing() ?
  				WidgetLayout.iconLayerShow : WidgetLayout.iconLayerHide);
  		record.setAttribute(FLD_OBJECT, layer);
  		return record;
  	}
docs: Extensible method to fill a {@link com.smartgwt.client.widgets.grid.ListGridRecord}
  based on the Layer information.
  
  @param layer
  @return