How to refactor this code?
Please suggest in refactoring this code. Avoid code duplication, mutiple If's public FormDataDTO getDataForFieldFormCHrzntalField(Field field) { FormDataDTO formDataDTO = new FormDataDTO(); CHrzntalField cHrzntalField = (CHrzntalField) field; for (int j = 0; j < cHrzntalField.getFieldCount(); j++) { Field sField = c...