throw new MBeanException(e);
}
}
private void addSystemProperty(Config config) throws ConfigException {
SystemProperty sp = new SystemProperty();
if (config.getSystemPropertyByName("DIAMETER_TCP_ADDRESS") == null) {
sp.setName("DIAMETER_TCP_ADDRESS");
sp.setValue("localhost");
config.addSystemProperty(sp);
}
sp = new SystemProperty();
if (config.getSystemPropertyByName("DIAMETER_SSL_ADDRESS") == null) {
sp.setName("DIAMETER_SSL_ADDRESS");
sp.setValue("localhost");
config.addSystemProperty(sp);
}
sp = new SystemProperty();
if (config.getSystemPropertyByName("DIAMETER_TCP_PORT") == null) {
sp.setName("DIAMETER_TCP_PORT");
sp.setValue("3777");
config.addSystemProperty(sp);
}
sp = new SystemProperty();
if (config.getSystemPropertyByName("DIAMETER_SSL_PORT") == null) {
sp.setName("DIAMETER_SSL_PORT");
sp.setValue("3778");
config.addSystemProperty(sp);
}
}