@OperationMethod public Blob run() throws Exception { FileSystemItemManager fileSystemItemManager = Framework.getLocalService(FileSystemItemManager.class); FileSystemItem fsItem = fileSystemItemManager.move(srcId, destId, ctx.getPrincipal()); // Commit transaction explicitly to ensure client-side consistency // TODO: remove when https://jira.nuxeo.com/browse/NXP-10964 is fixed NuxeoDriveOperationHelper.commitAndReopenTransaction(); return NuxeoDriveOperationHelper.asJSONBlob(fsItem); }