StandardContext sctx = (StandardContext) ctx;
sctx.restrictedSetPipeline(new SessionLockingStandardPipeline(sctx));
//special code for Java Server Faces
if(sctx.findParameter(JSF_HA_ENABLED) == null) {
sctx.addParameter(JSF_HA_ENABLED, "true");
}
//START OF 6364900
mgr.setSessionLocker(new PESessionLocker(ctx));
//END OF 6364900
ctx.setManager(mgr);