code: def _get_default_mapfile_excerpt(self):
          
              
          layerobj = self._get_layer_stub()
          classobj = mapscript.classObj() 
          layerobj.insertClass(classobj)
          styleobj = self._get_default_style()
          classobj.insertStyle(styleobj)
          
          return mapserializer.layerobj_to_dict(layerobj,None)
docs: Given an OGR string, an OGR connection and an OGR layer, create and
          return a representation of a MapFile LAYER block.