private byte[] sendAppleCopyRequest(@Nonnull HttpRequest.Builder requestBuilder)
            throws CopyException {

        final UUID jobId = JobMetadata.getJobId();
        final String appleRequestUUID = UUID.randomUUID().toString();

        final HttpRequest request;
        HttpResponse<byte[]> response = null;
        try {
            request = requestBuilder.header(Headers.AUTHORIZATION.getValue(), authData.getAccessToken())
                    .header(Headers.CORRELATION_ID.getValue(), appleRequestUUID)
                    .build();

            monitor.info(
                    () -> String.format("%s request from AppleMusicInterface", request.method()),
                    Headers.CORRELATION_ID, appleRequestUUID,
                    AuditKeys.uri, request.uri().toString(),
                    AuditKeys.jobId, jobId.toString()
            );

            HttpClient client = HttpClient.newBuilder().build();
            response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());

            if (response == null) {
                convertAndThrowException(new RuntimeException("No response from Apple Music Library Service"), SC_INTERNAL_SERVER_ERROR);
            } else {
                if (response.statusCode() > SC_CREATED) {
                    convertAndThrowException(new RuntimeException("Apple Music Library Service Error: " + new String(response.body())), response.statusCode());
                }
            }

        }  catch (IOException | InterruptedException e) {
            monitor.severe(
                    () -> String.format("Exception from %s in AppleMusicInterface", requestBuilder.build().method()),
                    Headers.CORRELATION_ID.getValue(), appleRequestUUID,
                    AuditKeys.jobId, jobId.toString(),
                    AuditKeys.error, e.getMessage(),
                    AuditKeys.errorCode, SC_INTERNAL_SERVER_ERROR,
                    e);

            convertAndThrowException(e, SC_INTERNAL_SERVER_ERROR);
        }

        return response.body();
    }
@return the total number of playlist tracks acknowledged by the Apple Music Library Service in this page
extensions/data-transfer/portability-data-transfer-apple/src/main/java/org/datatransferproject/datatransfer/apple/music/AppleMusicInterface.java