Implemented general pattern for Session based Servlet