// Add a new element returning its index in the list with a boolean flag
public int addDiameterApplications(DiameterApplications value, boolean overwrite)
throws ConfigException{
DiameterApplications old = getDiameterApplicationsById(value.getId());
if(old != null) {
throw new ConfigException(StringManager.getManager(PeerConfiguration.class).getString("cannotAddDuplicate", "DiameterApplications"));
}
return this.addValue(DIAMETER_APPLICATIONS, value, overwrite);
}