Query query = new Query(table, dbKey)
.addSort("name", SortDirection.ASCENDING)
.setFilter(idFilter);
PreparedQuery pq = datastore.prepare(query);
Entity entity = pq.asSingleEntity();
if (entity != null) {
HashMap<String, Object> properties = new HashMap<String, Object>();
properties.putAll(entity.getProperties());
attributes.put(table, properties);