gustafn
committed
on 11 Jan 08
factor out create_new_snippet from resolver, since it can be used more often