class AutonomiccsSystemVmDeploymentService implements InitializingBean {

    protected NetworkVO getDefaultNetworkForAdvancedNetworkingWithSecurityGroupds(long dataCenterId, DataCenterVO dc) {
        List<NetworkVO> networks = networkDao.listByZoneSecurityGroup(dataCenterId);
        if (CollectionUtils.isEmpty(networks)) {
            throw new CloudRuntimeException("Can not found security enabled network in SG Zone " + dc);
        }
        return networks.get(0);
    }

}