I have some questions about facets. Perhaps you can answer them:
1) Where is the best place to register the facet? I used to do that in the plugin.xml under extensions, but it is not recognised anymore since v9. Is my ApplicationComponent the right place using: FacetTypeRegistry.getInstance().registerFacetType(ClickFacetType.INSTANCE);?
2) For my facet I need to create and/or read an XML file in the WEB-INF directory of the WebFacet. How do I find the right directory to create the file in? I have WebFacet as the parent facet.
3) When the user decides to add the facet to his module, when is the right time to create the file mentioned in question #2? Does the facet have some first time initialization point?