List processHits (ObjectContext context, CompassHits hits)
{
int count = Math.min(500, hits.length());
List results = new ArrayList(count);
for (int i=0; i < count; i++) {
CompassHit hit = hits.hit(i);
Object thinObj = hit.data();
// ToDo: PERFORMANCE! This should be done in a batch fetch
Object pk = context.getPrimaryKey(thinObj);
Object fullObj = context.find(thinObj.getClass(), pk);
results.add(fullObj);
}