protected I getAccessToken(final String code, final Request request)
throws AccessTokenException, ResolverMissingException {
final Configuration c = getConfiguration();
final String params = getAccessTokenParams(c, code, request);
final String url = c.getString(SettingKeys.ACCESS_TOKEN_URL);
final WSRequestHolder wrh = WS.url(url);
wrh.setHeader(CONTENT_TYPE, "application/x-www-form-urlencoded");
for(final Map.Entry<String, String> header : getHeaders().entrySet()) {
wrh.setHeader(header.getKey(), header.getValue());
}
final WSResponse r = wrh.post(params).get(PlayAuthenticate.TIMEOUT);
return buildInfo(r);
}