code: public Define getFunction(String functionName) {
  		Define func = functionMap.get(functionName);
  		return func != null ? func : engineConfig.getSharedFunction(functionName);
  	}
docs: Get function of current template first, getting shared function if null before