private Set<ObjectName> queryObjectNames(String queryStr, Object... params)
      throws MalformedObjectNameException {
    Set<ObjectName> queried = Collections.emptySet();

    queryStr = MessageFormat.format(queryStr, params);
    ObjectName queryExp = ObjectName.getInstance(queryStr);
    queried = agent.getMBeanServer().queryNames(null, queryExp);

    return queried;
  }
Queries the MBean server with the string formed using placing the params in the parameterized
string passed as queryStr.

@param queryStr parameterized string
@param params params to put in the string
@return results of an ObjectName query
@throws MalformedObjectNameException If the query expression ObjectName formed is not valid
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/MemberInfoWithStatsMBean.java