private ScheduleEntity getScheduleEntity(String groupId) {
        checkGroupExist(groupId);
        ScheduleEntity entity = scheduleEntityMapper.selectByGroupId(groupId);
        if (entity == null) {
            LOGGER.error("schedule info for group={} not found", groupId);
            throw new BusinessException(ErrorCodeEnum.SCHEDULE_NOT_FOUND);
        }
        return entity;
    }
Check whether InLongGroup exists, throw BusinessException with ErrorCodeEnum.GROUP_NOT_FOUND if check failed.
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/schedule/ScheduleServiceImpl.java