Filter filter = new FilterPredicate("Entity", FilterOperator.EQUAL, e);
q.setFilter(filter);
Entity eac = datastore.prepare(q).asSingleEntity();
User owner = (User) eac.getProperty("owner");
if (owner.compareTo(userService.getCurrentUser()) == 0) {
return;
}
}
throw new NotAuthorizedException();
}