avoid NPE by doing bounds checking before calling enumerator.getRow()
move the QueryProxy.document property to a method
move the document property to a getDocument() method.
run the type preprocessor over query row keys in case they are complex objects
QueryProxy and QueryRowProxy passing unit tests on Android