Support for different envs in Servlet