String block_counts = URLEncoder.encode("video", "UTF-8");
String requested_fields = URLEncoder.encode("graded,format,student_view_multi_device", "UTF-8");
String student_view_data = URLEncoder.encode("video,discussion", "UTF-8");
String response;
if (!NetworkUtil.isConnected(context)) {
<BUG>response = oauthRestApi.getCourseOutline(courseId, username, requested_fields, student_view_data, block_counts).execute().body();
</BUG>
} else if (preferCache) {
<BUG>response = oauthRestApi.getCourseOutline(courseId, username, requested_fields, student_view_data, block_counts).execute().body();
</BUG>
} else {

String block_counts = URLEncoder.encode("video", "UTF-8");
String requested_fields = URLEncoder.encode("graded,format,student_view_multi_device", "UTF-8");
String student_view_data = URLEncoder.encode("video,discussion", "UTF-8");
String response;
if (!NetworkUtil.isConnected(context)) {
response = executeStrict(oauthRestApi.getCourseOutline(courseId, username, requested_fields, student_view_data, block_counts));
} else if (preferCache) {
response = executeStrict(oauthRestApi.getCourseOutline(courseId, username, requested_fields, student_view_data, block_counts));
