private void appendComponent(int i, StringBuilder b) {
        if (i >= components().size()) return;
        b.append(components().get(i).getId().stringValue());
        if (i < components().size() - 1)
            b.append(" -> ");
    }
Create a chain by using a builder. This will order the chain by the ordering constraints.
container-core/src/main/java/com/yahoo/component/chain/Chain.java