public List<String> parseCommand(String command) {
    int space;
    List<String> list = new LinkedList<>();
    while ((space = command.indexOf(' ')) > 0) {
      String str = command.substring(0, space);
      list.add(str);
      command = command.substring(space + 1);
    }
    list.add(command);
    return list;
  }
Parses a <code>command</code> and places each of its tokens in a <code>List</code>.
geode-junit/src/main/java/org/apache/geode/internal/jta/JTAUtils.java