if (uriSplit.length > 1) {
switch (TimelineType.fromUri(uriSplit[1])) {
case HOME:
return new HomeConsumer(te);
case MENTIONS:
return new MentionsConsumer(te);
case RETWEETSOFME:
return new RetweetsConsumer(te);
case USER:
if (te.getProperties().getUser() == null || te.getProperties().getUser().trim().isEmpty()) {
throw new IllegalArgumentException("Fetch type set to USER TIMELINE but no user was set.");