It's only used for project creation - I think this simple logic will work. We could also change to identifying the starting/main resource in the json metadata file. That would be more precise but more work. Would prefer to use this current mechanism :)