if (page.getResults() != null) {
int i = page.getStartIndex();
for (CustomField customField : page.getResults()) {
if (customField instanceof DropDownCustomField) {
List<String> dropDownCustomFieldStrings = new ArrayList<String>();
DropDownCustomField dropDownCustomField = (DropDownCustomField) customField;
if (dropDownCustomField.getOptions() != null) {
for (CustomFieldOption customFieldOption : dropDownCustomField.getOptions()) {
dropDownCustomFieldStrings.add(customFieldOption.getDisplayName());
}
}
System.out.println(i + ") Drop-down custom field with ID \"" + customField.getId()
+ "\", name \"" + customField.getName() + "\", and options {"