class StringUtils {

  public static List<String> split(final String string, final String delimiter) {
    if (null == string || null == delimiter) {
      return null;
    }
    final ArrayList<String> words = new ArrayList<String>();

    int from = 0;
    int to = 0;
    int wordLength = delimiter.length();

    while (0 <= (to = string.indexOf(delimiter, from))) {
      words.add(string.substring(from, to));
      from = to + wordLength;
    }

    if (from < string.length()) {
      words.add(string.substring(from));
    }

    return words;
  }

}