* @param setName the set name
*/
private void addToSet(IFile file, String setName)
throws IOException, CoreException {
// TODO(leeca): Is this configured with the correct XStream flavor?
ObjectXmlPersist persist =
new ObjectXmlPersist(XStreamFactory.getSharedRefXStream());
Collection<RelationshipSet> updateSet = loadRelationshipSet(persist, file);
RelationshipSet set = DefaultRelationshipSet.SET;
updateSet.add(set);
persist.save(file.getLocationURI(), updateSet);
file.refreshLocal(IResource.DEPTH_ZERO, null);
}