- Hashtable<String, String> props = new Hashtable<>();
- props.put(WebCmsSession.CMS_DN, authorization.getName());
- props.put(WebCmsSession.CMS_SESSION_ID, sessionId);
- WebCmsSessionImpl cmsSessionImpl = new WebCmsSessionImpl(sessionId, authorization);
- ServiceRegistration<WebCmsSession> cmSessionReg = bc.registerService(WebCmsSession.class,
- cmsSessionImpl, props);
- cmsSessionImpl.setServiceRegistration(cmSessionReg);
- cmsSessionRef = cmSessionReg.getReference();
+ WebCmsSessionImpl cmsSessionImpl = new WebCmsSessionImpl(httpSessionId, authorization);
+ cmsSessionRef = cmsSessionImpl.getServiceRegistration().getReference();