class ZMSUtils {

    public static String getProviderResourceGroupRolePrefix(String provSvcDomain, String provSvcName, String resourceGroup) {
        
        StringBuilder rolePrefix = new StringBuilder(256);
        rolePrefix.append(provSvcDomain).append('.').append(provSvcName).append('.');
        if (resourceGroup != null) {
            rolePrefix.append("res_group.").append(resourceGroup).append('.');
        }
        return rolePrefix.toString();
    }

}