code: public static String buildJmxDomain(String domain, MBeanServer mBeanServer, String groupName) {
        return findJmxDomain(domain, mBeanServer, groupName);
     }
docs: Build the JMX domain name.
  
  @param domain The JMX domain name
  @param mBeanServer the {@link MBeanServer} where to
  check whether the JMX domain is allowed or not.
  @param groupName String containing the group name for the JMX MBean
  @return A string that combines the allowed JMX domain and the group name