 
       url = "/app/#{dataHelpers.getAppId()}/service_providers.json"
       steroidsCli.debug "PROVIDER", "POSTing #{JSON.stringify(data)} to URL #{url}"
-      @apiClient.post url, data, (err, req, res, obj) =>
+      @legacyClient.post url, data, (err, req, res, obj) =>
         if obj.uid
           steroidsCli.debug "PROVIDER", "Creating a new provider #{@name} ID: #{@typeId} to cloud returned success: #{JSON.stringify(obj)}"
 


        if res.statusCode != 200
          steroidsCli.debug "PROVIDER", "Getting current data configuration from cloud returned failure: #{res['body']}"
          reject new CloudReadError res['body']
          return

        steroidsCli.debug "PROVIDER", "Getting current data configuration from cloud returned success"
        resolve(res['body'])

  @writeRamlToFile: (raml)=>
    return new Promise (resolve, reject) =>

    return new Promise (resolve, reject) =>
      steroidsCli.debug "PROVIDER", "Getting providers from cloud"

      @apiClient
        method: "get"
        url: "/app/#{dataHelpers.getAppId()}/service_providers.json"
      , (err, res, body) =>

        if err?
          steroidsCli.debug "PROVIDER", "Getting providers from cloud returned failure: #{JSON.stringify(obj)}"
