ePoly.setAppObject(ompoly.getAppObject());
ePoly.setAttributes(ompoly.getAttributes());
    public static EsriPolyline convert(OMPoly ompoly) {        if (ompoly.getRenderType() == RENDERTYPE_LATLON) {            float[] rawLL = ompoly.getLatLonArray();            float[] degreePoints = new float[rawLL.length];            System.arraycopy(rawLL, 0, degreePoints, 0, rawLL.length);            EsriPolyline ePoly = new EsriPolyline(degreePoints, OMGraphic.RADIANS, ompoly.getLineType());            ePoly.setAppObject(ompoly.getAppObject());            DrawingAttributes attributes = new DrawingAttributes();            attributes.setFrom(ompoly);            attributes.setTo(ePoly);            return ePoly;        } else {            return null;        }    }