code: public static <K, V> void addMappableCopiesToMap(Collection<Mappable<K, V>> aMappables, Map<K, V> aMap)
  	{
  		if (aMappables == null || aMap == null)
  			return;
  
  		Mappable<K, V> mappable = null;
  		Copier previous = null;
  		for (Iterator<Mappable<K, V>> i = aMappables.iterator(); i.hasNext();)
  		{
  			mappable = i.next();
  
  			previous = (Copier) aMap.get(mappable.getKey());
  
  			if (previous != null)
  			{
  				// copy data
  				previous.copy((Copier) mappable);
  			}
  			else
  			{
  				// add to map
  				aMap.put((K) mappable.getKey(), (V) mappable.getValue());
  			}
  		}
  	}
docs: Add mappable to map
  
  @param <K>
  the key
  @param <V>
  the value
  @param aMappables
  the collection of Mappables that must implement the Copier
  interface
  @param aMap
  the map to add to