This isn't the same as previously - it used to also check that the entity was an application. Are we deliberately relaxing that constraint for "top-level entities"? The reason it could be important is the risk of orphaned entities (e.g. when deserialising, the parent entity couldn't be found because it hadn't been persisted; or some other race on management-node-failure when persisting the multiple files).