Made setName private in Workspace and WorkspaceGroup. Re #6199.