Refactor: Pass a Java class as parameter for method: getAllBy(). Also,
allow integer indexes such as poi.uid=1