seqHor = getSequence("Horizontal flow");
// we can have several sequence with the same name so this actually return a list
listSeq = gui.getSequences("Horizontal flow
")
// found matching sequence(s) ?
if (listSeq.size() > 0)
{
// get the first one
seq = listSeq.get(0)
...
}