class WorkflowList extends AbstractCollection<Workflow> implements ComponentLifecycle, ComponentLifecycleExtension, List<Workflow> {

  public void setWorkflows(List<Workflow> l) {
    if (l == null) {
      throw new IllegalArgumentException("Workflow list is null, not allowed");
    }
    addressableWorkflows.clear();
    for (Workflow w : l) {
      register(w);
    }

    workflows = l;

  }

  public  WorkflowList();
  public  WorkflowList(Collection<Workflow> workflows);

}