class ZMSUtils {

    public static String removeDomainPrefixForService(String serviceName, String domainName) {
        final String valPrefix = domainName + ".";
        if (serviceName.startsWith(valPrefix)) {
            serviceName = serviceName.substring(valPrefix.length());
        }
        return serviceName;
    }

}