final String[] linkName = new String[]{null};
ModelAccess.instance().runReadAction(new Runnable() {
public void run() {
SModelDescriptor structureModelDescriptor = testRefactoringLanguage.getStructureModelDescriptor();
SModel model = structureModelDescriptor.getSModel();
<BUG>SNode node = SModelOperations.getRootByName(model, "MyVeryGoodConcept1");
ConceptDeclaration concept = (ConceptDeclaration) BaseAdapter.fromNode(node);
SNode link = concept.getLinkDeclarations().get(0).getNode();
linkName[0] = link.getProperty("role");</BUG>
refactoringContext.setSelectedProject(project);

final String[] linkName = new String[]{null};
ModelAccess.instance().runReadAction(new Runnable() {
public void run() {
SModelDescriptor structureModelDescriptor = testRefactoringLanguage.getStructureModelDescriptor();
SModel model = structureModelDescriptor.getSModel();
SNode node = SModelOperations.getRootByName(model, "MyVeryGoodConcept1");
SNode link = ListSequence.fromList(SLinkOperations.getTargets(SNodeOperations.cast(node, "jetbrains.mps.lang.structure.structure.ConceptDeclaration"), "linkDeclaration", true)).first();
linkName[0] = SPropertyOperations.getString(link, "role");
refactoringContext.setSelectedProject(project);
