code: public static ObjectName createObjectName(String domain, String type) {
          try {
              return new ObjectName(domain + ":type=" + type);
          } catch(MalformedObjectNameException e) {
              throw new VoldemortException(e);
          }
      }
docs: Create a JMX ObjectName
  
  @param domain The domain of the object
  @param type The type of the object
  @return An ObjectName representing the name