code: protected JSONArray getResponsiveImageSources(Media media) {
      MediaFormat[] mediaFormats = media.getMediaRequest().getMediaArgs().getMediaFormats();
      JSONArray sources = new JSONArray();
      for (MediaFormat mediaFormat : mediaFormats) {
        sources.put(toReponsiveImageSource(media, mediaFormat));
      }
      return sources;
    }
docs: Collect responsive JSON metadata for all renditions as image sources.
  @param media Media
  @return JSON metadata