resourceLocalService.addModelResources(
calendarResource, serviceContext);
serviceContext.setAddGroupPermissions(true);
serviceContext.setAddGuestPermissions(true);
calendarLocalService.addCalendar(
<BUG>userId, groupId, calendarResourceId, nameMap, descriptionMap,
PortletPropsValues.CALENDAR_COLOR_DEFAULT, true, false, false,

serviceContext);
updateAsset(</BUG>
calendarResource.getUserId(), calendarResource,

resourceLocalService.addModelResources(
calendarResource, serviceContext);
serviceContext.setAddGroupPermissions(true);
serviceContext.setAddGuestPermissions(true);
calendarLocalService.addCalendar(
userId, calendarResource.getGroupId(), calendarResourceId, nameMap,
descriptionMap, PortletPropsValues.CALENDAR_COLOR_DEFAULT, true,
false, false, serviceContext);
updateAsset(
calendarResource.getUserId(), calendarResource,
