validateNotNull(schemaFinder, "schemaFinder");
if (configureResponse != null) {
return;
}
SchemaResult schemaResult = schemaFinder.find(MAX_SCHEMA_RESULTS);
validateNotNull(schemaResult, "schemaResult");
//check if schema result fields are returned, display error of there are none
if (schemaResult.getResultCount() <= 0) {
configureResponse =
new ConfigureResponse(bundle.getString(ErrorMessages.NO_RESULTS_FOR_GIVEN_SEARCH_STRING
.name()), getFormRows(null));
}
if (configureResponse != null) {
return;
}
Set<String> foundSchema = schemaResult.getSchema().keySet();
validateNotNull(foundSchema, "foundSchema");
if (configureResponse != null) {
return;
}
schemaField.setKeys(foundSchema);