@Override
    public int hashCode() {
        int result = componentList.hashCode();
        result = 31 * result + id.hashCode();
        return result;
    }
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