I am getting error in this xml as nested class name should be unique.

As i am using org.exolab.castor.mapping.MapItem

3 times in nested classes i am getting this error.

But this is my requirement.
Can some one help me on this :




<class name="pojos.XYZParameters">
<field name="d=XXMap" collection="hashtable">
<bind-xml name="ddList">
<class name="org.exolab.castor.mapping.MapItem">
<field name="key" type="java.lang.String">
<bind-xml name="ver" node="attribute" />
</field>
<field name="value" collection="hashtable">
<bind-xml name="dataModelList">
<class name="org.exolab.castor.mapping.MapItem">
<field name="key" type="java.lang.String">
<bind-xml name="state" node="attribute" />
</field>
<field name="value" collection="hashtable">
<bind-xml name="parameterList">
<class name="org.exolab.castor.mapping.MapItem">
<field name="key" type="java.lang.String">
<bind-xml name="key" node="attribute" />
</field>
<field name="value" type="pojos.DataParameter">
<bind-xml name="dmParameter" />
</field>
</class>
</bind-xml>
</field>
</class>
</bind-xml>
</field>
</class>
</bind-xml>
</field>
</class>