private boolean isServiceSupportedInRegion ( String serviceName ) { return partition . getServices ( ) . get ( serviceName ) != null && partition . getServices ( ) . get ( serviceName ) . getEndpoints ( ) . containsKey ( region ) ; }
This method returns true only if the metadata for the service contains the given region in the list of supported regions .