void () { ProjectEx project = (ProjectEx)getProject(); String name = project.getName(); try { project.setProjectName("invalid | name"); getContextManager().saveContext("foo", "bar"); } finally { project.setProjectName(name); } }