We need some mapping schema flexibility. My earlier attempt of directly doing a role-mapping element needs to be deprecated and we need something like the following:
<application-policy name="test">
<authentication/>
<authorization/>
<mapping>
<type="principal">
<mapping-module>....</mapping-module>
</type>
<type="identity">
<mapping-module>....</mapping-module>
</type>
<type="rolemapping">
<mapping-module>....</mapping-module>
</type>
</mapping>
</application-policy>
the element names in type (principal, identity, rolemapping) should just be arbitrary strings. Users should be able to add anything of their own.
getMappingInfo(String mappingType) should return the MappingInfo.