im looking at this url to create radio buttons. the code works http://stackoverflow.com/questions/34867139/how-to-create-a-radio-button-group-with-pdfbox-2-0
instead of adding all widgets in List<PDAnnotationWidget> widgets and calling setWidgets() as stated in the code, i add it within the loop like radioButton.getWidgets().add(widget) but it does not get added seems like the list does not get modified. even calling getWidgets().clear() does not clear its contents.. if i call .size() its value is always 1

