moduleCore = StructureEdit.getStructureEditForWrite(project);
if (moduleCore != null){
WorkbenchComponent component = moduleCore.getComponent();
if (component != null) {
component.setName(deployedName);
moduleCore.saveIfNecessary(null);
}
}
} finally {
if (moduleCore != null) {
moduleCore.dispose();