private String getTenant() {
        UserInfo userInfo = LoginUserUtils.getLoginUser();
        if (userInfo == null) {
            throw new BusinessException("Current user is null, please login first");
        }
        String tenant = userInfo.getTenant();
        if (StringUtils.isBlank(tenant)) {
            throw new BusinessException(String.format("User tenant is blank for user id=%s and username=%s",
                    userInfo.getId(), userInfo.getName()));
        }
        return tenant;
    }
This interceptor intercept those queries annotated by {@link MultiTenantQuery}.

<p>The main idea of MultiTenantInterceptor is that developer define sql template
support multiple tenant in mapper.xml, but no need to pass the tenant explicitly in mapper.java.</p>

<p>MultiTenantInterceptor will insert <strong>tenant</strong> into the parameter maps in
{@link Executor} and {@link ParameterHandler} stages.</p>
inlong-manager/manager-dao/src/main/java/org/apache/inlong/manager/dao/interceptor/MultiTenantInterceptor.java