Currently dynamic capabilites only allow one, last, part of name to be dynamic.
There are cases where we need support for multiple dynamic parts such are cases in infinispan subsystem and in undertow.
For example when you have "virtual host" in undertow it is defined under path
And here are two capabilities in this path.
/subsystem=undertow/server=default which server capability with name "default"
but host capability is defined by its name as well as name of server capability that is its parent.
We need support in management layer to expose this kind of capability names.
Prototype impl is available my branch https://github.com/ctomc/wildfly-core/tree/capabilites-api