code: public HashMap<String, Object> getFunctions(ClassModel classModel) {
          HashMap<String, Object> result = newHashMap();
          for (String name : functions.keySet()) {
              result.put(name, new TemplateFunction(functions.get(name), classModel));
          }
          return result;
      }
docs: Return a freemarker model containing the user defined functions.
  
  @param classModel
  refenrece a model that will be used when evaluating these
  funstions
  @return model for user defined functions