replace deprecated method of resource
allow initialize value for JetWebContext.SESSION_ENABLED