docs: public SetSelector populateSetSelector(Map map, SetSelector setselector) {
          HashMap<String,String> attrs = new HashMap<String, String>();
          for (final Object o : map.entrySet()) {
              final Map.Entry entry = (Map.Entry) o;
              final String key = (String) entry.getKey();
              final String value = asString(entry.getValue(), ",");
              if (HOSTNAME.equals(key)) {
                  setselector.setHostname(value);
              } else if (OS_FAMILY.equals(key)) {
                  setselector.setOsfamily(value);
              } else if (OS_ARCH.equals(key)) {
                  setselector.setOsarch(value);
              } else if (OS_NAME.equals(key)) {
                  setselector.setOsname(value);
              } else if (OS_VERSION.equals(key)) {
                  setselector.setOsversion(value);
              } else if (NAME.equals(key)) {
                  setselector.setName(value);
              } else if (TAGS.equals(key)) {
                  setselector.setTags(value);
              } else {
                  attrs.put(key, value);
              }
          }
          setselector.setAttributesMap(attrs);
          return setselector;
      }