@Override
    public ContainerSnapshot newReference(URI uri, Object context) {
        String name = bindingSetSelector.select(uri);
        if (name == null) {
            throw new NoBindingSetSelectedException(uri);
        }
        BindingSet<RequestHandler> serverBindings = serverBindings(name);
        BindingSet<RequestHandler> clientBindings = clientBindings(name);
        if (serverBindings == null || clientBindings == null) {
            throw new BindingSetNotFoundException(name);
        }
        return new ContainerSnapshot(this, serverBindings, clientBindings, context);
    }
Make this instance retain a reference to the resource until it is destroyed.
jdisc_core/src/main/java/com/yahoo/jdisc/core/ActiveContainer.java