String importedCalendarID = getImportedCalendarID(ureq, calendarName);
String importedCalendarType = getImportedCalendarType();
CalendarManager calManager = CalendarManagerFactory.getInstance().getCalendarManager();
File oldCalendarFile = calManager.getCalendarFile(importedCalendarType, tempCalendarID);
oldCalendarFile.renameTo(calManager.getCalendarFile(importedCalendarType, importedCalendarID));
// make the entry in the database
long timestamp = System.currentTimeMillis();
PropertyManager pm = PropertyManager.getInstance();
Property p = pm.createUserPropertyInstance(ureq.getIdentity(), PROP_CATEGORY, sanitize(calendarName), null, timestamp, importUrl, null);