static void createClient() throws Exception {
   resourceClient =
       ResourceManager.configure()
           .withLogLevel(HttpLoggingInterceptor.Level.BODY)
           .authenticate(
               new ApplicationTokenCredentials(
                   System.getenv("client-id"),
                   System.getenv("domain"),
                   System.getenv("secret"),
                   null))
           .withSubscription(System.getenv("subscription-id"));
 }
 protected Manager(RestClient restClient, String subscriptionId) {
   this.resourceManager =
       ResourceManager.authenticate(restClient).withSubscription(subscriptionId);
 }