public <T> T readExternal(Bean<T> bean, ObjectInput in) throws IOException,
ClassNotFoundException
{
T actualResource = null;
// try fail over service to serialize the resource object
FailOverService failoverService = webBeansContext.getService(FailOverService.class);
if (failoverService != null)
{
//X TODO hmm actualResource is definitely null here!
//X TODO anyone enlightened enough to point me what this now does actually?
actualResource = (T) failoverService.handleResource(bean, actualResource, in, null);
if (actualResource != FailOverService.NOT_HANDLED)
{
return actualResource;
}
}