code: public static boolean defined(String group) {
          return LocalUnitsManager.getGroupByName(group) != null ||
                  (GroupDiscovery.singleton != null && GroupDiscovery.singleton.newestDefinition(group) != null);
      }
docs: Judge whether the specified group is defined.
  We check local first and then remote.