if(_paged instanceof RemoteVarSegments) {
((RemoteVarSegments) _paged).writeExternal(out);
} else {
File dataFile = _paged.getFile();
String filePath = dataFile.getAbsolutePath();
RemoteVarSegments remoteSeg = new RemoteVarSegments(RemotePagingService.PORT, filePath, false);
remoteSeg.writeExternal(out);
}
}