public SyncLastAccessedSubsectionResponse syncLastAccessedSubsection(String courseId, String lastVisitedModuleId) throws Exception {
String date = DateUtil.getCurrentTimeStamp();
EnrollmentRequestBody.LastAccessRequestBody body = new EnrollmentRequestBody.LastAccessRequestBody();
body.last_visited_module_id = lastVisitedModuleId;
body.modification_date = date;
<BUG>retrofit2.Response<SyncLastAccessedSubsectionResponse> response =
oauthRestApi.syncLastAccessedSubsection(body, loginPrefs.getUsername(), courseId).execute();

if (!response.isSuccessful()) {
throw new HttpResponseStatusException(response);
}
return response.body();</BUG>
}

public SyncLastAccessedSubsectionResponse syncLastAccessedSubsection(String courseId, String lastVisitedModuleId) throws Exception {
String date = DateUtil.getCurrentTimeStamp();
EnrollmentRequestBody.LastAccessRequestBody body = new EnrollmentRequestBody.LastAccessRequestBody();
body.last_visited_module_id = lastVisitedModuleId;
body.modification_date = date;
return executeStrict(oauthRestApi.syncLastAccessedSubsection(body, loginPrefs.getUsername(), courseId));
}
