code: public ServiceEndpoints getServiceEndpoints(String environment) {
          Assert.notEmpty(endpoints, "No service endpoints found");
  
          if (!endpoints.containsKey(environment)) {
              throw new IllegalArgumentException(environment + " is not found in the configuration," +
                      " only following environments are supported: " + endpoints.keySet());
          }
  
          return endpoints.get(environment);
      }
docs: Get ServiceEndpoints data for the given environment.
  
  @param environment the environment of the cloud service
  @return The ServiceEndpoints data for the given azure service <code>environment</code>