} else {
final RemoteSequenceProxy proxy = new RemoteSequenceProxy(result, request);
try {
UnicastRemoteObject.exportObject(proxy, 0, TimeoutSocketProdiver.createClientSocketFactory(), TimeoutSocketProdiver.createServerSocketFactory());
} catch (RemoteException e) {
throw new XQueryException("failed exporting variable: " + varname, e);
}
RemoteSequence remote = new RemoteSequence(proxy, result.getType());
shiped = new ShippedVariable(varname, remote);
}
return shiped;