RestApiRequest request =
new RestApiRequest(createDiscoveryPath(serviceName, version, callStyle));
// If a Discovery Auth token is set, use it.
if (Config.getDiscoveryAuthToken() != null) {
request.addHeader("Authorization", "OAuth " + Config.getDiscoveryAuthToken());
}
request.send(new AsyncCallback<ApiResponse>() {
@Override
public void onSuccess(ApiResponse response) {