docs: @Override
      public boolean moveTo(WsResource target) throws IOException {
          if (target == null)
              throw new NullPointerException("Can not move to a null resource");
  
          if (this.equals(target))
              return false;
  
          if (target.exists())
              throw new ExistingResourceException(this.toString(), target.toString());
  
          // If target resource was created as the wrong type, throw an exception
          if (!target.isType(type))
              throw new ResourceMismatchException(target.toRepositoryPath(), type, target.getType());
  
          // Only support moving file to file now.
          if (target instanceof LocalFileResource) {
              LocalFileResource targetFile = (LocalFileResource) target;
              return wrappedFile.renameTo(targetFile.wrappedFile);
          }
  
          throw new UnsupportedOperationException("Can only move files");
      }