code: public function getAlbumIdentifierFromMediaObject(Media $media)
      {
          $mediaCategoryIdentity = $this->identityService->findOneBy([
              'objectIdentifier' => $media->getMediaCategoryIdentifier(),
              'objectType' => MediaCategory::TYPE,
              'adapterName' => ShopwareAdapter::NAME,
          ]);
  
          if (null === $mediaCategoryIdentity) {
              throw new NotFoundException('missing media category for adapter');
          }
  
          return $mediaCategoryIdentity->getAdapterIdentifier();
      }
docs: @param Media $media
  
  @return string