@Override
public RemoteCall read(DataStream in) throws IOException, ClassNotFoundException {
MethodSerializer serializer = (MethodSerializer) Repository.requestSerializer(in.readLong());
Object[] args = new Object[serializer.argCount];
RemoteCall result = new RemoteCall(serializer, args);
in.register(result);
for (int i = 0; i < args.length; i++) {
args[i] = in.readObject();
}
return result;