Clone of https://code.google.com/p/javageomodel/ to allow key only queries