code: public static ArbitraryAttributeMap fromModelCollection(Collection<ArbitraryAttributeModel> models) {
  
          // Add all name/value pairs from the given collection to the map
          ArbitraryAttributeMap map = new ArbitraryAttributeMap();
          for (ArbitraryAttributeModel model : models)
              map.put(model.getName(), model.getValue());
  
          return map;
  
      }
docs: Creates a new ArbitraryAttributeMap containing the name/value pairs
  within the given collection of model objects.
  
  @param models
  The model objects of all attributes which should be stored in the
  new map as name/value pairs.
  
  @return
  A new ArbitraryAttributeMap containing the name/value pairs within
  the given collection of model objects.