public static String getApplePhotosImportThrowingMessage(
      final String cause,
      final ImmutableMap<AuditKeys, Optional<String>> keyValuePairs) {
    String finalLogMessage = String.format("%s " + cause, ApplePhotosConstants.APPLE_PHOTOS_IMPORT_ERROR_PREFIX);
    for (AuditKeys key: keyValuePairs.keySet()){
      finalLogMessage = String.format("%s, %s:%s", finalLogMessage, key.name(), keyValuePairs.get(key).orElse("[n/a]"));
    }
    return finalLogMessage;
  }
An interface that is synonymous to HTTP client to interact with the Apple Photos APIs.
extensions/data-transfer/portability-data-transfer-apple/src/main/java/org/datatransferproject/datatransfer/apple/photos/AppleMediaInterface.java