poly.setAppObject(omLine.getAppObject());
poly.setAttributes(omLine.getAttributes());
    public static OMPoly convert(OMLine omLine) {        if (omLine.getRenderType() == OMGraphic.RENDERTYPE_LATLON) {            OMPoly poly = new OMPoly(omLine.getLL(), OMGraphic.DECIMAL_DEGREES, omLine.getLineType());            poly.setAppObject(omLine.getAppObject());            DrawingAttributes da = new DrawingAttributes();            da.setFrom(omLine);            da.setTo(poly);            return poly;        } else            return null;    }