public Set<SimpleEnum> buildEnumSet(String values) {

    Set<SimpleEnum> returnSet = new HashSet<SimpleEnum>();
    String[] valuesArray = values.split(",");

    for (int i = 0; i < valuesArray.length; i++) {
      returnSet.add(SimpleEnum.valueOf(valuesArray[i].trim()));
    }
    return returnSet;
  }
  public List<SimpleEnum> buildEnumList(String values) {

    String[] valuesArray = values.split(",");
    List<SimpleEnum> returnList = new ArrayList<SimpleEnum>();

    for (String s : valuesArray) {
      returnList.add(SimpleEnum.valueOf(s.trim()));
    }

    return returnList;
  }