public static void addEndpoint(String region,String domain){
  regionMap.put(region,domain);
  try {
    DefaultProfile.addEndpoint(region,region,"BatchCompute",domain);
  }
 catch (  ClientException e) {
    e.printStackTrace();
  }
}

public static void addEndpoint ( String region , String domain ) { regionMap . put ( region , domain ) ; try { DefaultProfile . addEndpoint ( region , region , "BatchCompute" , domain ) ; } catch ( ClientException e ) { e . printStackTrace ( ) ; } }
add region domain mapping
