handleApplicationError(e);
} catch (InvalidProtocolBufferException e) {
throw new AppIdentityServiceFailureException(e.getMessage());
}
GetAccessTokenResponse response = responseBuilder.build();
return new GetAccessTokenResult(response.getAccessToken(),
new Date(response.getExpirationTime() * 1000));
}