if (diaService == null) {
String msg = _strMgr.getString("DiameterSvcDoesNotExists", targetName);
throw new MBeanException(new ConfigException(msg));
}
PeerConfiguration peerConfig = diaService.getPeerConfiguration();
Peers peers = peerConfig.getPeers();
Peer[] peer = peers.getPeer();
for (int i=0; i < peer.length; i++) {
if (peer[i].getId().equals(id)) {
peers.removePeer(peer[i]);
deleted = true;
}
}
if (!deleted) {
String msg = _strMgr.getString("PeerDoesNotExists", targetName);