@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);
  }
 @OperationMethod
 public Blob run() throws IOException {
   FileSystemItemManager fileSystemItemManager =
       Framework.getLocalService(FileSystemItemManager.class);
   boolean exists = fileSystemItemManager.exists(id, ctx.getPrincipal());
   return NuxeoDriveOperationHelper.asJSONBlob(exists);
 }