Servlet aggregate context review

Please check whether is the logic you need here.