@Override
  public void changeAssociationState(String associationId, boolean isEnable)
      throws WorkflowException {

    Association association = workflowDAO.getAssociation(associationId);
    association.setEnabled(isEnable);
    workflowDAO.updateAssociation(association);
  }
  @Override
  public List<Association> listAllAssociations() throws WorkflowException {

    List<Association> associations = workflowDAO.listAssociations();
    for (Iterator<Association> iterator = associations.iterator(); iterator.hasNext(); ) {
      Association association = iterator.next();
      WorkflowRequestHandler requestHandler =
          WorkflowServiceDataHolder.getInstance().getRequestHandler(association.getEventId());
      if (requestHandler != null) {
        association.setEventName(requestHandler.getFriendlyName());
      } else {
        // invalid reference, probably event id is renamed or removed
        iterator.remove();
      }
    }
    return associations;
  }