String msg = _strMgr.getString("DiameterSvcDoesNotExists", targetName);
throw new MBeanException(new ConfigException(msg));
}
try {
PeerConfiguration peerConfig = diaService.getPeerConfiguration();
DiameterApplications diaApps = peerConfig.getDiameterApplicationsById(applicationsId);
if (diaApps == null) {
diaApps = new DiameterApplications();
diaApps.setId(applicationsId);
peerConfig.addDiameterApplications(diaApps);
}
Application diaApp = new Application();
diaApp.setVendorid(vendorId);
if (acctAppId != null) {
Acctapp acctApp = new Acctapp();
acctApp.setId(acctAppId);
diaApp.addAcctapp(acctApp);
}
if (authAppId != null) {
Authapp authApp = new Authapp();
authApp.setId(authAppId);
diaApp.addAuthapp(authApp);
}
diaApps.addApplication(diaApp);
} catch (ConfigException e) {
throw new MBeanException(e);
}
}