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 ) ; }
Get ServiceEndpoints data for the given environment .