@Override
  public void beginSequence(AST s) {
    sequence = (SequenceType) s;
    if (!sequence.hasLabels()) return;

    fields.clear();
    for (Field field : sequence.getFields()) {
      SequenceFieldEmitter fe = new SequenceFieldEmitter(field, this);
      fields.add(fe);
    }

    try {
      Template tpl = cfg.getTemplate("java/LabelSetterSequence.ftl");
      tpl.process(this, writer);
    } catch (Exception e) {
      throw new DataScriptException(e);
    }
  }
 public String getSequencePackageName() {
   return sequence.getPackage().getPackageName();
 }