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;

    }
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.
extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/base/ArbitraryAttributeMap.java