Check that the servant in info (which must not be null) is
an instance of the expectedType. If not, set the thread local flag
and return false.
if (so == null)
return false ;
// Normally, this test will never fail. However, if the servant
// and the stub were loaded in different class loaders, this test
// will fail.
if (!expectedType.isInstance( so.servant )) {
isNextCallValid.set( Boolean.FALSE ) ;
// When servant_preinvoke returns null, the stub will
// recursively re-invoke itself. Thus, the next call made from
// the stub is another useLocalInvocation call.
return false ;
}
return true ;