Resolves the ID for the supplied IObjectDefinition.
the resolved id
When using ShouldGenerateId generation, a name is generated automatically. Otherwise, the ID is extracted from the "id" attribute, potentially with a ShouldGenerateIdAsFallback fallback to a generated id.
|ObjectDefinitionStoreException||if no unique name could be generated for the given object definition|