In Provigen 2.0.0.
This line and the next one can be replaced by 
String table = uri.getPathSegments().get(0);