ReplayResponseDocument response = _db.exec(new BpelDatabase.Callable<ReplayResponseDocument>() {
public ReplayResponseDocument run(BpelDAOConnection conn) throws Exception {
try {
ReplayResponse response = ReplayResponse.Factory.newInstance();
Replayer replayer = new Replayer();
List<Long> iids = replayer.replayInstances(request, _server.getEngine(), conn);
for (Long iid : iids) {
response.addRestoredIID(iid);
}
ReplayResponseDocument responseDoc = ReplayResponseDocument.Factory.newInstance();
responseDoc.setReplayResponse(response);