code: public static DataSource createDataSource(final Map<String, DataSource> dataSourceMap, final MasterSlaveRuleConfiguration masterSlaveRuleConfig, final Properties props) throws SQLException {
          return new MasterSlaveDataSource(dataSourceMap, masterSlaveRuleConfig, props);
      }
docs: Create master-slave data source.
  
  @param dataSourceMap data source map
  @param masterSlaveRuleConfig master-slave rule configuration
  @param props props
  @return master-slave data source
  @throws SQLException SQL exception