code: private HashMap<String, TagLibTag> duplicate(HashMap<String, TagLibTag> tags, boolean deepCopy) {
  	if (deepCopy) throw new PageRuntimeException(new ExpressionException("deep copy not supported"));
  
  	Iterator<Entry<String, TagLibTag>> it = tags.entrySet().iterator();
  	HashMap<String, TagLibTag> cm = new HashMap<String, TagLibTag>();
  	Entry<String, TagLibTag> entry;
  	while (it.hasNext()) {
  	    entry = it.next();
  	    cm.put(entry.getKey(), deepCopy ? entry.getValue() : // TODO add support for deepcopy ((TagLibTag)entry.getValue()).duplicate(deepCopy):
  		    entry.getValue());
  	}
  	return cm;
      }
docs: duplcate a hashmap with TagLibTag's
  
  @param tags
  @param deepCopy
  @return cloned map