if (graph != null)
{
final Collection actionStates = graph.getActionStates();
for (final Iterator actionStateIterator = actionStates.iterator(); actionStateIterator.hasNext();)
{
final ActionStateFacade state = (ActionStateFacade)actionStateIterator.next();
if (state instanceof JBpmNode && !((JBpmNode)state).isTaskNode())
{
states.add(state);
}
}