// Add a new element returning its index in the list with a boolean flag
public int addMessageSecurityConfig(MessageSecurityConfig value, boolean overwrite)
throws ConfigException{
MessageSecurityConfig old = getMessageSecurityConfigByAuthLayer(value.getAuthLayer());
if(old != null) {
throw new ConfigException(StringManager.getManager(SecurityService.class).getString("cannotAddDuplicate", "MessageSecurityConfig"));
}
return this.addValue(MESSAGE_SECURITY_CONFIG, value, overwrite);
}