*/
public void exportWavesToFiles() {
HttpClient httpClient = new HttpClient();
UserContext context = new UserContext();
context.setParticipantId(new ParticipantId(participantId));
OAuthCredentials cred = new OAuthCredentials(refreshToken, accessToken);
context.setOAuthCredentials(cred);
OAuthRequestHelper helper = new OAuthRequestHelper(clientId, clientSecret, context);
OAuthedFetchService oauthService = new OAuthedFetchService(httpClient, helper);
RobotApi api = new RobotApi(oauthService, WAVE_RPC);
try {