question: public void export ( ) { OMGraphicList list = getGraphicList ( ) ; if ( list == null ) { logger . warning ( "no graphic list to export!" ) ; return ; } export ( list , null , true ) ; }
target:  Separates the graphics from the OMGraphicList into Polygon, Polyline and Point lists, then passes the desired shape lists to their respective export functions to be added to an EsriLayer of the same type and prepared for export. OMGraphics that are on sublists within the top-level OMGraphicList will be simply written to the appropriate list at the top level of that list. They will be handled as multi-part geometries. <p> Separating the graphics into the three types is necessary due to shape file specification limitations which will only allow shape files to be of one type. <P> For OMGraphicLists that are actually EsriGraphicLists, this export method will be redirected to a different method that will handle sub-OMGraphicLists as multi-part geometries. <P> If you want to write out multi-part geometries and have a regular OMGraphicList, you have to convert them to EsriGraphicLists first (and OMGraphics to EsriGraphics), which forces you to group shapes into like types (points, polylines and polygons).