public String getLayout(String target) {
        String layout = null;
        String[] targetPaths = target.split("/");
        StringBuilder pathBuilder = new StringBuilder();

        for (int i = targetPaths.length - 1; i >= 0; i--) {
            pathBuilder.append(TYPE_LAYOUT);
            pathBuilder.append("/");
            for (int j = 0; j < i; j++) {
                pathBuilder.append(targetPaths[j]);
                pathBuilder.append("/");
            }
            pathBuilder.append("default.vm");
            String path = pathBuilder.toString();
            if (this.templates.containsKey(path)) {
                layout = path;
                break;
            } else {
                pathBuilder.delete(0, pathBuilder.length());
            }
        }
        return layout;
    }
Get layout information
@param target  the target information
@return   the layout information
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/master/web/simplemvc/RequestDispatcher.java