Property tokenProperty = null;
if (!calendarType.equals(ICalFileCalendarManager.TYPE_USER)) {
// find the property for the resourceable
OLATResourceable resourceable = getResourceable(calendarType, calendarID);
NarrowedPropertyManager npm = NarrowedPropertyManager.getInstance(resourceable);
tokenProperty = npm.findProperty(identity, null, PROP_CAT_ICALTOKEN, PROP_NAME_ICALTOKEN);
} else {
PropertyManager pm = PropertyManager.getInstance();
tokenProperty = pm.findProperty(identity, null, null, PROP_CAT_ICALTOKEN, PROP_NAME_ICALTOKEN);
}
return tokenProperty != null;