private Optional<String> getPaginationToken(
      Optional<PaginationData> paginationData, String tokenPrefix) {
    Optional<String> paginationToken = Optional.empty();
    if (paginationData.isPresent()) {
      String token = ((StringPaginationToken) paginationData.get()).getToken();
      Preconditions.checkArgument(
          token.startsWith(tokenPrefix), "Invalid pagination token " + token);
      if (token.length() > tokenPrefix.length()) {
        paginationToken = Optional.of(token.substring(tokenPrefix.length()));
      }
    }
    return paginationToken;
  }
Exports Microsoft OneDrive photos using the Graph API.

<p>Converts folders to media albums.
extensions/data-transfer/portability-data-transfer-microsoft/src/main/java/org/datatransferproject/transfer/microsoft/media/MicrosoftMediaExporter.java