Object targetObj = refVal.target();
if (targetObj == null)
{
if (refVal.text() != null)
{
SapphireDiagramEditorPagePart diagramEditorPart = this.getDiagramConnectionTemplate().getDiagramEditor();
DiagramNodePart targetNode = diagramEditorPart.getNode(refVal.text());
if (targetNode != null)
{
targetObj = targetNode.getLocalModelElement();
}
}