code: private List<InternetAddress> createInternetAddresses(String mailAddresses) throws AddressException {
  
          if (CmsStringUtil.isNotEmpty(mailAddresses)) {
              // at least one email address is present, generate list
              StringTokenizer T = new StringTokenizer(mailAddresses, ";");
              List<InternetAddress> addresses = new ArrayList<InternetAddress>(T.countTokens());
              while (T.hasMoreTokens()) {
                  InternetAddress address = new InternetAddress(T.nextToken().trim());
                  addresses.add(address);
              }
              return addresses;
          } else {
              // no address given, return empty list
              return Collections.emptyList();
          }
      }
docs: Creates a list of internet addresses (email) from a semicolon separated String.<p>
  
  @param mailAddresses a semicolon separated String with email addresses
  @return list of internet addresses (email)
  @throws AddressException if an email address is not correct