GTNWCI-44: Refactor code of WebAppContext to enhance reuse between containers