public void service(ServiceManager manager) throws ServiceException {
this.manager = manager;
EventManager eventManager = null;
try {
eventManager = (EventManager)this.manager.lookup(EventManager.ROLE);
eventManager.subscribe(this);
} finally {
this.manager.release(eventManager);
}
this.service = (PortalService)this.manager.lookup(PortalService.ROLE);
this.userContextProvider = (UserContextProvider)this.manager.lookup(UserContextProvider.ROLE);