boolean hasNoKeywords = te.getProperties().getKeywords() == null
|| te.getProperties().getKeywords().trim().isEmpty();
if (hasNoKeywords) {
throw new IllegalArgumentException("Type set to SEARCH but no keywords were provided.");
} else {
return new SearchConsumer(te);
}
case STREAMING:
switch (StreamingType.fromUri(uriSplit[1])) {
case SAMPLE:
return new SampleConsumer(te);