/**
   * Generates all XACML Policy Set.
   *
   * @throws IOException
   */
  public void generateAllXACMLPolicySets() throws IOException {
    log.info("Generating All XACML Policy Sets.");

    FacesContext context = FacesContext.getCurrentInstance();

    successfulGeneration = polUtil.generateAllXACMLPolicySets(getPolicySetList());

    if (successfulGeneration) {
      log.info("All Policy Sets successfully generated!");
      context.addMessage(null, new FacesMessage("All Policy Sets successfully generated!", ""));
    } else {
      log.info("Error occured while generating all policy sets!");
      context.addMessage(
          null, new FacesMessage("Error occured while generating all policy sets!", ""));
    }
  }