I found that excellent link but could not find what I need:
Any explanation , sample code or link would be much appreciated.
Any book recommandation about that matter would be also appreciated.
PS: I run a dockerized Alfresco:
Alfresco Share v6.1.0
(rfc7f986e4267e4e4d9c7572b73ab200a6a578c93-b6, Aikau 220.127.116.11, Spring Surf 6.1.0, Spring WebScripts 6.20, Freemarker 2.3.20-alfresco-patched, Rhino 1.7R4-alfresco-patched, Yui 2.9.0-alfresco-20141223)
Alfresco Community v6.1.2
(r589dc49b-b205) schema 13001
Thank you in advance.