I don't know if I better open a new thread, but I prepared all this aop configuration just to avoid an exception I was having:

failed to lazily initialize a collection of role: path.MediaObject.annotations, no session or session was closed
Leave Spring the work of open and close ddbb connections
This is an Object which contains a list, adn this exception comes when I am trying to list it.
Thanks