msg.parseJSON(responseJson.toString());
} else {
// Default assume it is application/x-www-form-urlencoded
// Facebook has a content type of text/plain
// GitHub has a content type of application/x-www-form-urlencoded
msg.parseQuery('?' + responseString);
}
final OAuth2Error error = msg.getError();
if (error != null) {
ret = getError("error parsing request", null, msg.getErrorUri(),