} else {
out.writeBoolean(true);
if(result instanceof RemoteSequence) {
out.writeBoolean(true);
RemoteSequence remote = (RemoteSequence) result;
remote.writeExternal(out);
} else {
out.writeBoolean(false);
final StopWatch sw = new StopWatch("Elapsed time for encoding `$" + getName()
+ '\'');
final XQEventEncoder encoder = new XQEventEncoder(out);