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

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