q.addFilter(DEPARTMENT_ID_PROPERTY, FilterOperator.EQUAL, deptId);
q.addFilter(COURSE_ID_PROPERTY, FilterOperator.GREATER_THAN_OR_EQUAL, prefix);
q.addSort(DEPARTMENT_ID_PROPERTY, SortDirection.ASCENDING);
q.addSort(COURSE_ID_PROPERTY, SortDirection.ASCENDING);
PreparedQuery pq = datastore.prepare(q);
List<Entity> results = pq.asList(FetchOptions.Builder.withLimit(10));
List<CourseInformationObject> ciol = new ArrayList<CourseInformationObject>();
for(Iterator<Entity> i = results.iterator(); i.hasNext();) {
Entity e = i.next();
String courseId = (String)e.getProperty(COURSE_ID_PROPERTY);
if(courseId.startsWith(prefix))