I have a requirement that I want to implement with freemaker, I already know how the freemarker works, like this

```
template.process(dataMap,out);

```

dataMap contains the data we would use to fill the template, of course all the data implemented the TamplateModel interface, there is no difference if we use user-defined directives, because user-defined directive implement TemplateDirectiveModel, this interface implemented TemplateModel, what I need to do is is access data stored in session, and then use theses data in my directives.like this `<@authCheck> </@authCheck>`, my auth data is stored in session, so I need to get these data from session in my directive.

ps: I use springMVC with freemarker