if (editPermission != null) {
calendar.setEditPermission(editPermission);
}
}
if (calNode.getPath().startsWith(getGroupCalendarHomePath())) {
<BUG>calendar.setCalendarType(Calendar.Type.GROUP);
</BUG>
} else {
<BUG>calendar.setCalendarType(Calendar.Type.PERSONAL);
</BUG>
}

if (editPermission != null) {
calendar.setEditPermission(editPermission);
}
}
if (calNode.getPath().startsWith(getGroupCalendarHomePath())) {
calendar.setCalType(Calendar.Type.GROUP.type());
} else {
calendar.setCalType(Calendar.Type.PERSONAL.type());
}
