#### Named model configs

There are a couple of reasons for adding the `model` attribute into the config identity. One of them is to define the scope for the `name` attribute. In this sense, the `model` could be thought of as a namespace. E.g.

[source,xml]
----
<feature-pack xmlns="urn:jboss:galleon:feature-pack:1.0"
              groupId="org.jboss.pm.test" artifactId="fp1" version="1.0.0.Final">
  <config name="main" model="modelA">
    <feature spec="feature1">
        <param name="id" value="1"/>
        <param name="a" value="fp1-modelA"/>
        <param name="b" value="fp1-modelA"/>
    </feature>
  </config>
  <config name="main" model="modelB">
    <feature spec="feature1">
        <param name="id" value="1"/>
        <param name="a" value="fp1-modelB"/>
        <param name="b" value="fp1-modelB"/>
    </feature>
  </config>
</feature-pack>
----

[source,xml]
----
<feature-pack xmlns="urn:jboss:galleon:feature-pack:1.0"
              groupId="org.jboss.pm.test" artifactId="fp2" version="1.0.0.Final">
  <dependencies>
    <dependency groupId="org.jboss.pm.test" artifactId="fp1" version="1.0.0.Final">
      <name>fp1-dep</name>
    </dependency>
  </dependencies>
  <config name="main" model="modelA">
    <feature-pack dependency="fp1-dep">
        <feature spec="feature1">
            <param name="id" value="1"/>
            <param name="b" value="fp2-modelA"/>
        </feature>
    <feature-pack>
  </config>
  <config name="main" model="modelB">
    <feature-pack dependency="fp1-dep">
      <feature spec="feature1">
        <param name="id" value="1"/>
        <param name="b" value="fp2-modelB"/>
      </feature>
    <feature-pack>
  </config>
</feature-pack>
----

Installing these two feature-packs (*fp2* after the *fp1*) will result in the following two configurations:
[%header,options="autowidth"]
|===
|Config model |Config name |Feature spec origin |Feature spec |id |a |b
|modelA |main |org.jboss.pm.test:fp1:1.0.0.Final |feature1 |1 |fp1-modelA |fp2-modelA
|===

[%header,options="autowidth"]
|===
|Config model |Config name |Feature spec origin |Feature spec |id |a |b
|modelB |main |org.jboss.pm.test:fp1:1.0.0.Final |feature1 |1 |fp1-modelB |fp2-modelB
|===

