}
public void createApplication(String targetName, String authAppId,
String acctAppId, String applicationsId, String vendorId) throws MBeanException {
checkDiameterInstalled();
DiameterService diaService = getDiameterService(targetName);
if (diaService == null) {
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);