private boolean tenantIsExists(PulsarClusterInfo pulsarClusterInfo, String tenant) throws Exception {
        List<String> tenants = PulsarUtils.getTenants(restTemplate, pulsarClusterInfo);
        return tenants.contains(tenant);
    }
Check if Pulsar tenant exists

@param pulsarClusterInfo pulsar cluster info
@param tenant pulsar tenant info
@return true or false
@throws Exception any exception if occurred
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/queue/pulsar/PulsarOperator.java