class AutonomiccsSystemVmDeploymentService implements InitializingBean {

    protected NetworkVO getDefaultNetwork(long dataCenterId) {
        DataCenterVO dc = dataCenterDao.findById(dataCenterId);
        if (dc.getNetworkType() == NetworkType.Advanced && dc.isSecurityGroupEnabled()) {
            return getDefaultNetworkForAdvancedNetworkingWithSecurityGroupds(dataCenterId, dc);
        }
        return getDefaultNetwork(dc);
    }

}