@@ -0,0 +1,1804 @@
+package controllers;%0A%0Aimport org.ow2.chameleon.wisdom.api.DefaultController;%0Aimport org.ow2.chameleon.wisdom.api.annotations.Controller;%0Aimport org.ow2.chameleon.wisdom.api.annotations.Route;%0Aimport org.ow2.chameleon.wisdom.api.http.HttpMethod;%0Aimport org.ow2.chameleon.wisdom.api.http.Result;%0A%0A@Controller%0Apublic class Session extends DefaultController %7B%0A%0A    // tag::session%5B%5D%0A    @Route(method= HttpMethod.GET, uri = %22/session%22)%0A    public Result readSession() %7B%0A        String user = session(%22connected%22);%0A        if(user != null) %7B%0A            return ok(%22Hello %22 + user);%0A        %7D else %7B%0A            return unauthorized(%22Oops, you are not connected%22);%0A        %7D%0A    %7D%0A    // end::session%5B%5D%0A%0A    // tag::login%5B%5D%0A    @Route(method= HttpMethod.GET, uri = %22/session/login%22)%0A    public Result login() %7B%0A        String user = session(%22connected%22);%0A        if(user != null) %7B%0A            return ok(%22Already connected%22);%0A        %7D else %7B%0A            session(%22connected%22, %22wisdom%22);%0A            return readSession();%0A        %7D%0A    %7D%0A    // end::login%5B%5D%0A%0A    // tag::logout%5B%5D%0A    @Route(method= HttpMethod.GET, uri = %22/session/logout%22)%0A    public Result logout() %7B%0A        session().remove(%22connected%22);%0A        return ok(%22You have been logged out%22);%0A    %7D%0A    // end::logout%5B%5D%0A%0A    // tag::clear%5B%5D%0A    @Route(method= HttpMethod.GET, uri = %22/session/clear%22)%0A    public Result clear() %7B%0A        session().clear();%0A        return ok(%22You have been logged out%22);%0A    %7D%0A    // end::clear%5B%5D%0A%0A    // tag::flash%5B%5D%0A    @Route(method= HttpMethod.GET, uri = %22/session/flash%22)%0A    public Result welcome() %7B%0A        String message = flash(%22success%22);%0A        if(message == null) %7B%0A            message = %22Welcome!%22;%0A            flash(%22success%22, message);%0A        %7D%0A        return ok(message);%0A    %7D%0A    // end::flash%5B%5D%0A%7D%0A

Add a session controller to support the documentation