class ZMSUtils {

    public static String getTrustedResourceGroupRolePrefix(String provSvcDomain, String provSvcName,
            String tenantDomain, String resourceGroup) {
        
        StringBuilder trustedRole = new StringBuilder(256);
        trustedRole.append(provSvcDomain).append(AuthorityConsts.ROLE_SEP).append(provSvcName)
                .append(".tenant.").append(tenantDomain).append('.');
        if (resourceGroup != null) {
            trustedRole.append("res_group.").append(resourceGroup).append('.');
        }
        return trustedRole.toString();
    }

}