String id = facade.getId();
Collection graphs = getModel().getActivityGraphs().getActivityGraph().refAllOfType();
for (final Iterator iterator = graphs.iterator(); iterator.hasNext() && activityGraph == null;)
{
ModelElement element = (ModelElement)iterator.next();
if (id.equals(element.refMofId()))
{
activityGraph = (ActivityGraph)element;
}
}
}