<BUG>if (calendar.getCalendarType() == Calendar.Type.PERSONAL) {</BUG><CONTEXT>public Calendar remove(String id) {Calendar calendar = getById(id);if (calendar == null) {return null;}<extra_id_0>try {dataStorage.removeUserCalendar(calendar.getCalendarOwner(), id);} catch (Exception ex) {</CONTEXT>
if (calendar.getCalType() == Calendar.Type.PERSONAL.type()) {