To determine the source from which, before all snippets are saved, store the source via an extra "source" parameter.