GTNWCI-44: Refactor code of WebAppContext to enhance container reuse