docs: @Override
      public void uploadAsset(RepositoryResourceImpl resource, List<RepositoryResourceImpl> matchingResources) throws RepositoryBackendException, RepositoryResourceException {
          // Add the asset
          resource.addAsset();
  
          // ... and the attachments
          for (AttachmentResourceImpl attachment : resource.getAttachmentImpls()) {
              resource.addAttachment(attachment);
          }
  
          // read back any fields massive added during upload
          resource.refreshFromMassive();
  
          // Move the resource to the desired state, use the noMatching state as matching will be null by default
          RepositoryResourceImpl firstMatch = (matchingResources == null || matchingResources.isEmpty()) ? null : matchingResources.get(0);
          resource.moveToState(getTargetState(firstMatch));
      }