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