code: public static <T extends Model> List<T> processAndCloseCursor(Class<T> cls, Cursor cursor) {
  		List<T> entities = processCursor(cls, cursor);
  		cursor.close();
  		return entities;
  	}
docs: Iterate over a cursor and load entities. Closes the cursor when finished.
  
  @param cls    The model class.
  @param cursor The result cursor.
  @return The list of entities.