class SequenceLoader {

    public static Sequence loadFromBayesNet(BayesianNetwork network) {
        Collection<Sequence> sequences = loadSequences(network, false).values();
        return sequences.stream().findFirst().get();
    }

}