wrote logic to store domains in web.xml