StreamConsumerStateStore stateStore = stateStoreFactory.create(streamConfig);
StreamConsumerState consumerState = stateStore.get(consumerConfig.getGroupId(), consumerConfig.getInstanceId());
StreamConsumer newConsumer = create(tableName, streamConfig, consumerConfig,
stateStore, consumerState, createReader(streamConfig, consumerState),
new TTLReadFilter(streamConfig.getTTL()));
try {
// The old stream admin uses full URI of queue name as the name for checking existence
if (!oldStreamAdmin.exists(streamName.toURI().toString())) {
return newConsumer;