docs: protected final Metadata prepareMetadata( final Binary binary,
                                                final Context context ) throws IOException, RepositoryException {
          Metadata metadata = new Metadata();
  
          String mimeType = binary.getMimeType();
          if (StringUtil.isBlank(mimeType)) {
              // Call the detector (we don't know the name) ...
              mimeType = context.mimeTypeOf(null, binary);
          }
          if (!StringUtil.isBlank(mimeType)) {
              metadata.set(Metadata.CONTENT_TYPE, mimeType);
          }
          return metadata;
      }