code: public static List<String> convertStringToList(String inputStr) {
          List<String> list = new ArrayList<String>();
          if (StringUtils.isNotBlank(inputStr)) {
              list = Arrays.asList(inputStr.split("\\|"));
          }
          return list;
      }
docs: Split string with "|" as delimiter.
  @param inputStr Input string
  @return List of String