@Override
public void deleteGroup(long clusterGroupId) throws AbstractServiceException {
List<ScheduleJob> jobs = scheduleJobDao.findAllByClusterGroup(clusterGroupId);
if (CollectionUtils.isNotEmpty(jobs)) {
throw new ClusterGroupUsed();
}
businessEntityDao.deleteById(ClusterGroup.class, clusterGroupId);
}