return getStateMachine();
}
protected Object handleGetPartition()
{
Partition thePartition = null;
final StateMachine stateMachine = metaObject.getContainer().getStateMachine();
if (stateMachine instanceof ActivityGraph)
{
final ActivityGraph activityGraph = (ActivityGraph)stateMachine;
final Collection partitions = activityGraph.getPartition();
for (final Iterator partitionIterator = partitions.iterator(); partitionIterator.hasNext() && thePartition == null;)
{
final Partition partition = (Partition)partitionIterator.next();
if (partition.getContents().contains(metaObject))
{
thePartition = partition;
}
}
}