{
if (this.internalActions == null)
{
internalActions = new ArrayList();
final StateMachineFacade stateMachine = getOwner().getStateMachineContext();
if (stateMachine instanceof ActivityGraphFacade)
{
final ActivityGraphFacade graph = (ActivityGraphFacade)stateMachine;
final Collection states = graph.getStates();
for (final Iterator stateIterator = states.iterator(); stateIterator.hasNext();)