Divya,
the documentation link you are using for writing extensions is old one and was for 7.0.x
for 7.1.x we have simplyifed few things especaly the way how model is described.
so please use new documentation.
https://docs.jboss.org/author/display/AS71/Extending+JBoss+AS+7
--
tomaz