SVY-7433 services and components template creation (fix refresh problem
by using resource.setContents)