public <Bean> Bean getBean(Class<Bean> clazz) {
        if (applicationContext == null) {
            throw new IllegalStateException("Failed to get the bean because the context is null");
        }
        try {
            return applicationContext.getBean(clazz);
        } catch (NoSuchBeanDefinitionException e) {
            NodeType nodeType =
                    ThrowableUtil.suppress(() -> applicationContext.getBean(NodeType.class));
            String message = "Failed to get the bean. The request type \""
                    + name()
                    + "\" may be sent to the wrong server with the node type: "
                    + nodeType;
            throw new RuntimeException(message, e);
        }
    }
Is null if the RPC request runs on the local node
turms-server-common/src/main/java/im/turms/server/common/infra/cluster/service/rpc/dto/RpcRequest.java