Github user neykov commented on the pull request:
https://github.com/apache/incubator-brooklyn/pull/274#issuecomment-61256318
The commits so far implement the following precedence of setting the
catalog item ID:
1. The user can always set/override the inferred catalog item id on specs.
2. Creating from a catalog item - all items resolved during the creation
of a spec from a catalog item receive the catalog item's ID as context.
3. When using the Java API for creating specs get the catalog item ID from
the context entity of the Tasks.current() task.
4. Propagate the context catalog item ID to children, adjuncts if they
don't have one already.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---