NotificationSettings (String groupId) { NotificationGroup group = NotificationGroup.findRegisteredGroup(groupId); if (group != null) { return new NotificationSettings(groupId, group.getDisplayType(), group.isLogByDefault(), false); } return new NotificationSettings(groupId, NotificationDisplayType.BALLOON, true, false); }