private void restoreLineStyle(Annotation annotation) {
        Object border = annotation.getObject(Annotation.BORDER_KEY);

        BorderStyle borderStyle = annotation.getBorderStyle();
        borderStyle.setBorderStyle(lineStyle);

        // remove the dashed border dashed entry if any as we will use
        // border style going forward and not the older border entry.
        // that said we will keep the border entry first 3 digits .
        if (border != null && border instanceof Vector) {
            Vector borderProps = (Vector) border;
            if (borderProps.size() == 4) {
                borderProps.remove(Annotation.BORDER_DASH);
            }
        }
    }