code: private static void addDescriptorsToList(final List<FeatureDescriptor> descriptorList,
                                               final Map<String, Object> scopeMap)
      {
          for (Object name : scopeMap.keySet())
          {
              String strName = (String)name;
              Class<?> runtimeType = scopeMap.get(strName).getClass();
              descriptorList.add(makeDescriptor(strName, runtimeType));
          }
      }
docs: side effect: modifies the list