// local XMLDispatcherState interface
xdsr = (XMLDispatcherStateReadOnly)entity;
}
catch(ClassCastException e1)
{
XMLDispatcherStateReadOnlyRemote xdsrr = null;
try
{
// remote XMLDispatcherState interface
xdsrr = (XMLDispatcherStateReadOnlyRemote)entity;
}
catch(ClassCastException e2)
{
// no fsm
return null;
}
// with fsm (remote interface)
return xdsrr.getState(xdCtx);
}
// with fsm (local interface)
return xdsr.getState(xdCtx);
}