elastic-db-tools/src/main/java/com/microsoft/azure/elasticdb/shard/map/ShardMap.java [180:196]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            String connectionString,
            ConnectionOptions options) {
        ExceptionUtils.disallowNullArgument(connectionString, "connectionString");

        assert this.getStoreShardMap().getKeyType() != ShardKeyType.None;

        try (ActivityIdScope activityIdScope = new ActivityIdScope(UUID.randomUUID())) {
            IShardMapper mapper = this.<KeyT>getMapper();

            if (mapper == null) {
                throw new IllegalArgumentException(
                        StringUtilsLocal.formatInvariant(Errors._ShardMap_OpenConnectionForKey_KeyTypeNotSupported, key.getClass(),
                                this.getStoreShardMap().getName(), ShardKey.typeFromShardKeyType(this.getStoreShardMap().getKeyType())),
                        new Throwable("key"));
            }

            assert mapper != null;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



elastic-db-tools/src/main/java/com/microsoft/azure/elasticdb/shard/map/ShardMap.java [238:254]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            String connectionString,
            ConnectionOptions options) {
        ExceptionUtils.disallowNullArgument(connectionString, "connectionString");

        assert this.getStoreShardMap().getKeyType() != ShardKeyType.None;

        try (ActivityIdScope activityIdScope = new ActivityIdScope(UUID.randomUUID())) {
            IShardMapper mapper = this.<KeyT>getMapper();

            if (mapper == null) {
                throw new IllegalArgumentException(
                        StringUtilsLocal.formatInvariant(Errors._ShardMap_OpenConnectionForKey_KeyTypeNotSupported, key.getClass(),
                                this.getStoreShardMap().getName(), ShardKey.typeFromShardKeyType(this.getStoreShardMap().getKeyType())),
                        new Throwable("key"));
            }

            assert mapper != null;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



