private int[][] createPolyIndex(EsriGraphicList list) {
protected int[][] createPolyIndex(EsriGraphicList list) {
    private int[][] createPolyIndex(EsriGraphicList list) {        float[] data;        int[][] indexData = new int[2][list.size()];        int pos = 50;        for (int i = 0; i < list.size(); i++) {            int contentLength = 0;            OMGraphic graphic = (OMGraphic) list.getOMGraphicAt(i);            contentLength += 2; //Shape Type            contentLength += 16; //Box            contentLength += 2; //NumParts            contentLength += 2; //NumPoints            if (graphic instanceof OMGraphicList) {                OMGraphicList sublist = (OMGraphicList) graphic;                contentLength += sublist.size() * 2; // offsets?                for (int j = 0; j < sublist.size(); j++) {                    OMPoly poly = (OMPoly) sublist.getOMGraphicAt(j);                    data = poly.getLatLonArray();                    //each value equals 4 words                    contentLength += data.length * 4;                }            } else {                contentLength += 2; // offset?                // Should be an EsriPolyline                data = ((OMPoly) graphic).getLatLonArray();                //each value equals 4 words                contentLength += data.length * 4;            }            indexData[1][i] = contentLength;            indexData[0][i] = pos;            pos += contentLength + 4;        }        return indexData;    }