Query q = new Query(SECTION_KIND);
q.addFilter(DEPARTMENT_ID_PROPERTY, FilterOperator.EQUAL, departmentId);
q.addFilter(COURSE_ID_PROPERTY, FilterOperator.EQUAL, courseId);
q.addFilter(SECTION_ID_PROPERTY, FilterOperator.EQUAL, sectionId);
PreparedQuery pq = datastore.prepare(q);
Entity e = pq.asSingleEntity();
if (e == null)
return null;
return getSectionFromEntity(e);
}