class FillTheFormDialogModel {

    @VisibleForTesting
    String getSelectedConfigItemValue() {
        if (selectedConfigItem != null && selectedConfigItem.isLastEntryItem()) {
            return selectedConfigItem.getValue();
        }

        ConfigurationItem preparedConfigurationItem = prepareSelectedConfigurationItemForInput();
        if (preparedConfigurationItem != null) {
            String value = preparedConfigurationItem.getValue();
            if (preparedConfigurationItem.shouldRememberLastEntry()) {
                rememberLastEntry(preparedConfigurationItem);
            }
            return value;
        }

        return null;
    }

    public  FillTheFormDialogModel(FillTheFormDialogModelHelper helper);

}