code: @Override
      public void write(List<? extends ContentProperties> items) throws Exception {
          for (final ContentProperties props : items) {
              new Retrier().execute(new Retriable() {
  
                  @Override
                  public Object retry() throws Exception {
                      try {
                          contentStore.setContentProperties(destinationSpaceId,
                                                            props.getContentId(),
                                                            props.getProperties());
                          log.debug("wrote content properties ({}) to space ({}) on store ({}/{}):",
                                    props, destinationSpaceId, storeId, storageProviderType);
                          return null;
                      } catch (ContentStoreException ex) {
                          log.warn("failed to update content properties ({}) to space({}); on store({}/{}). " +
                                   "Trying with chunk manifest extension.",
                                   props, destinationSpaceId, storeId, storageProviderType);
  
                          //make sure the chunk manifest's properties are layed on top of the stitched file
                          //properties to ensure that mutable "system-ish" properties such as content type are not
                          //overwritten.
                          String manifestId = props.getContentId() + ChunksManifest.manifestSuffix;
                          Map<String, String> properties = new HashMap<>(props.getProperties());
                          Map<String, String> chunkManifestProperties =
                              contentStore.getContentProperties(destinationSpaceId, manifestId);
                          properties.putAll(chunkManifestProperties);
                          contentStore.setContentProperties(destinationSpaceId, manifestId, properties);
                          return null;
                      }
                  }
              });
          }
      }
docs: /*
  (non-Javadoc)
  
  @see org.springframework.batch.item.ItemWriter#write(java.util.List)