/**
  * Import ics
  * @param type $file
  * @param type $category_id 
  */
 protected function doImportFile($file, $category_id)
 {
     include_once './Services/Calendar/classes/../classes/iCal/class.ilICalParser.php';
     include_once './Services/Calendar/classes/class.ilCalendarCategoryAssignments.php';
     $GLOBALS['ilLog']->write(__METHOD__ . ': Starting ical import...');
     $assigned_before = ilCalendarCategoryAssignments::lookupNumberOfAssignedAppointments(array($category_id));
     $parser = new ilICalParser($file, ilICalParser::INPUT_FILE);
     $parser->setCategoryId($category_id);
     $parser->parse();
     $assigned_after = ilCalendarCategoryAssignments::lookupNumberOfAssignedAppointments(array($category_id));
     return $assigned_after - $assigned_before;
 }