code: public List<ObjectName> getObjectNames() {
          List<String> names = getMBeanNames();
          List<ObjectName> ret = new ArrayList<ObjectName>(names.size());
          for (String name : names) {
              try {
                  ret.add(new ObjectName(name));
              } catch (MalformedObjectNameException e) {
                  // Should never happen since the names returned by the server must
                  // be valid ObjectNames for sure
                  throw new IllegalStateException("Cannot convert search result '" + name + "' to an ObjectName",e);
              }
          }
          return ret;
      }
docs: Get the found names as a list of {@link ObjectName} objects.
  
  @return list of MBean object names or an empty list.