document's template saving engine refactored to work correctly on server (runprocessor resource/update changed to set() method)