At this point `uri` will never be null.