@Override @ActionEvent(eventType = EventTypes.EVENT_S2S_VPN_CONNECTION_UPDATE, eventDescription = "creating s2s vpn gateway", async = true) public Site2SiteVpnConnection updateVpnConnection(long id, String customId, Boolean forDisplay) { Account caller = CallContext.current().getCallingAccount(); Site2SiteVpnConnectionVO conn = _vpnConnectionDao.findById(id); if (conn == null) { throw new InvalidParameterValueException("Fail to find site to site VPN connection " + id); } _accountMgr.checkAccess(caller, null, false, conn); if (customId != null) { conn.setUuid(customId); } if (forDisplay != null) { conn.setDisplay(forDisplay); } _vpnConnectionDao.update(id, conn); return _vpnConnectionDao.findById(id); }