code: private VirtualTransformedRenditionMetadata getCropRendition(NavigableSet<RenditionMetadata> candidates) {
      RenditionMetadata original = getOriginalRendition();
      if (original == null) {
        return null;
      }
      Double scaleFactor = getCropScaleFactor();
      CropDimension scaledCropDimension = new CropDimension(
          Math.round(cropDimension.getLeft() * scaleFactor),
          Math.round(cropDimension.getTop() * scaleFactor),
          Math.round(cropDimension.getWidth() * scaleFactor),
          Math.round(cropDimension.getHeight() * scaleFactor));
      return new VirtualTransformedRenditionMetadata(original.getRendition(),
          rotateMapWidth(scaledCropDimension.getWidth(), scaledCropDimension.getHeight()),
          rotateMapHeight(scaledCropDimension.getWidth(), scaledCropDimension.getHeight()),
          scaledCropDimension, rotation);
    }
docs: Searches for the biggest web-enabled rendition that matches the crop dimensions width and height or is bigger.
  @param candidates
  @return Rendition or null if no match found