protected void doExecute() throws Exception {
super.doExecute();
Document targetDoc;
Document source = getSourceDocument();
DocumentLocator target = getTargetLocator();
DocumentManager documentManager = null;
try {
documentManager = (DocumentManager) this.manager.lookup(DocumentManager.ROLE);
documentManager.moveAll(source.area(), source.getPath(), source.area(), target
.getPath());
targetDoc = getDocumentFactory().get(target);
} finally {
if (documentManager != null) {
this.manager.release(documentManager);