if (old != null) {
valueCount -= old.size();
}
values.add(new FormValueImpl(value, headers));
if (++valueCount > maxValues) {
<BUG>throw UndertowMessages.MESSAGES.tooManyParameters(maxValues);
</BUG>
}
}
public Deque<FormValue> remove(String name) {

if (old != null) {
valueCount -= old.size();
}
values.add(new FormValueImpl(value, headers));
if (++valueCount > maxValues) {
throw new RuntimeException(UndertowMessages.MESSAGES.tooManyParameters(maxValues));
}
}
public Deque<FormValue> remove(String name) {
