private Object readResolve() throws ObjectStreamException {
ServiceName name = ServiceName.parse(serviceName);
ServiceController<?> service = CurrentServiceContainer.getServiceContainer().getRequiredService(name);
StatefulSessionComponent component = (StatefulSessionComponent) service.getValue();
final InterceptorFactoryContext context = new SimpleInterceptorFactoryContext();
for(final Map.Entry<Object, Object> entry : serializableInterceptors.entrySet()) {
AtomicReference<ManagedReference> referenceReference = new AtomicReference<ManagedReference>(new ValueManagedReference(new ImmediateValue<Object>(entry.getValue())));
context.getContextData().put(entry.getKey(), referenceReference);
}
context.getContextData().put(SessionID.class, sessionID);
return component.constructComponentInstance(instance, false, context);
}