@Override
    public Object intercept(Invocation invocation) throws Throwable {
        if (invocation.getTarget() instanceof ParameterHandler) {
            return doParameterHandler((ParameterHandler) invocation.getTarget(), invocation);
        } else if (invocation.getTarget() instanceof Executor) {
            return doExecutor(invocation);
        } else {
            throw new Throwable("do not support type of target=" + invocation.getTarget());
        }
    }
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