/**
  * Build one 1-section backup
  */
 protected static function build_section_plan($controller, $id)
 {
     $plan = $controller->get_plan();
     // Add the section task, responsible for outputting
     // all the section related information
     $plan->add_task(backup_factory::get_backup_section_task($controller->get_format(), $id));
     // For the given section, add as many activity tasks as necessary
     $coursemodules = backup_plan_dbops::get_modules_from_sectionid($id);
     foreach ($coursemodules as $coursemodule) {
         if (plugin_supports('mod', $coursemodule->modname, FEATURE_BACKUP_MOODLE2)) {
             // Check we support the format
             self::build_activity_plan($controller, $coursemodule->id);
         } else {
             // TODO: Debug information about module not supported
         }
     }
 }