SpecialDispatchId[] ids = SpecialDispatchId.values();
if (specialMethodInt < 0 || specialMethodInt >= ids.length) {
throw new BrowserChannelException("Invalid dispatch id "
+ specialMethodInt);
}
final SpecialDispatchId dispatchId = ids[specialMethodInt];
final int argLen = stream.readInt();
final Value[] args = new Value[argLen];
for (int i = 0; i < argLen; i++) {
args[i] = channel.readValue(stream);
}