{
BioPAXGraph graph = (BioPAXGraph) root;
if (graph.isMechanistic() && graph.getPathway() == null)
{
PathwayHolder p = new PathwayHolder(getOwlModel());
p.setName(adviceTabName(graph.getName()));
graph.setName(p.getName());
graph.setPathway(p);
graph.registerContentsToPathway();
allPathwayNames.add(p.getName());
}
else
{
graph.setName(graph.getPathway() != null ? graph.getPathway().getName() :
adviceTabName(graph.getName()));