Changed method signature
Added constants for template and group node
Implementing addTemplate method
Adding checks for request params and changing the servlet registry name