this.delegate = checkNotNull(delegate);
SessionStats sessionStats = delegate.getSessionStats();
sessionStats.setAttributes(attributes);
this.namespaces = new SessionNamespaces(delegate.getRoot());
this.namePathMapper = new NamePathMapperImpl(
namespaces, delegate.getIdManager());
this.valueFactory = new ValueFactoryImpl(
delegate.getRoot(), namePathMapper);
}