class MsoTenantUtilsFactory {

    public MsoTenantUtils getTenantUtils(String cloudSiteId) throws MsoCloudSiteNotFound {
        CloudSite cloudSite =
                cloudConfig.getCloudSite(cloudSiteId).orElseThrow(() -> new MsoCloudSiteNotFound(cloudSiteId));

        return getTenantUtilsByServerType(cloudSite.getIdentityService().getIdentityServerType());
    }

}