class MasterSlaveDataSource extends AbstractDataSourceAdapter {

    public static String getDataSourceName(final String dataSourceName, final SQLType sqlType) {
        return isMasterRoute(sqlType) ? getMasterDataSourceName(dataSourceName) : getSlaveDataSourceName(dataSourceName);
    }

}