{
String id = (String)in.readObject();
WebBeansContext webBeansContext = WebBeansContext.currentInstance();
bean = (ResourceBean) webBeansContext.getBeanManagerImpl().getPassivationCapableBean(id);
ResourceInjectionService resourceInjectionService = webBeansContext.getService(ResourceInjectionService.class);
actualResource = resourceInjectionService.readExternal(bean, in);
}
}