}
}
if (consumerType.equals(ConsumerType.SAVEDSEARCH) && ObjectHelper.isEmpty(endpoint.getConfiguration().getSavedSearch())) {
throw new RuntimeException("Missing option 'savedSearch' with saved search");
}
dataReader = new SplunkDataReader(endpoint, consumerType);
}