{
// write bean id first
out.writeObject(bean.getId());
WebBeansContext webBeansContext = WebBeansContext.getInstance();
ResourceInjectionService resourceInjectionService = webBeansContext.getService(ResourceInjectionService.class);
resourceInjectionService.writeExternal(bean, actualResource, out);
}
/**
* When deserialized, first try container provided failover service. If the failover service does not
* handle the actual instance, the default behavior is: