private void fillCollection(Collection source, Collection target) { if (source != null && target != null) { for (Iterator it = source.iterator(); it.hasNext();) { Object o = it.next(); target.add(this.findCollectionTarget(o)); } } }
private void fillMap(Map source, Map target) { if (source != null && target != null) { for (Iterator it = source.keySet().iterator(); it.hasNext();) { Object o = it.next(); target.put(findKeyTarget(o), findCollectionTarget(source.get(o))); } } }