else
{
for (Iterator it = entryList.iterator(); it.hasNext();)
{
ProcessEntry entry = (ProcessEntry) it.next();
InitialNode node = entry.getInitialNode();
if (!initialNodes.contains(node))
{
it.remove();
}
}
if (entryList.size() == 0)
{
entryList = null;
}
}
}
else
{
if (initialNodes != null)
{
entryList = new ArrayList();
}
}
// Now add all new initial nodes
if (initialNodes != null && entryList != null)
{
int n = initialNodes.size();
for (int i = 0; i < n; ++i)
{
InitialNode node = (InitialNode) initialNodes.get(i);
if (!containsInitialNode(entryList, node))
{
ProcessEntry entry = new ProcessEntry();
entry.setModel(settings.getModel());
entry.setInitialNode(node);
entry.setName(node.getName());
entry.setDisplayName(node.getDisplayName());
entryList.add(entry);
}
}
}