Added compatibility with Servlet2.x containers