And I have one more question. I had to rewrite this in Alfresco 5.1. and I did not have to do it in Alfresco 5.0.d. There are two possible answers here: 1. It depends in my local settings, then I understand it. 2. It is normal for all Aflresco. Then there should be some article about this. Is there any? It is not very important question, but I try to understand if I went to find the solution correctly.
I really can't remember it anymore, but I think I had problems with some document URLs since 5.1 and was missing the "repository-url" (or had the default localhost value) in the share config. I'm imaginig myself, that repository-url was not necessary before and the urls where built by share.context... in alfresco-global.properties, but can't say for sure...