// Do something with the note contents or resources...
// Now, update the note. Because we're not changing them, we unset
// the content and resources. All we want to change is the tags.
note.unsetContent();
note.unsetResources();
// We want to apply the tag "TestTag"
note.addToTagNames("TestTag");