fixing bug #4243
fixing bug #4287
removing obsolete code used only by first version of SaasManager
It must use new domains service.