public static String[] splitPathToDetachedNodes(String path) throws IllegalPathException {
    if ("".equals(path)) {
      return new String[] {};
    }
    try {
      return PathNodesGenerator.splitPathToNodes(path);
    } catch (PathParseException e) {
      throw new IllegalPathException(path);
    }
  }
@param path the path will split. ex, root.ln.
@return string array. ex, [root, ln]
@throws IllegalPathException if path isn't correct, the exception will throw
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/PathUtils.java