{
checkDestructionApparent ();
if (!isUseServantManager())
{
throw new WrongPolicy();
}
if (servantManager != null)
{
throw new org.omg.CORBA.BAD_INV_ORDER();
}
/* not spec. */
if( isRetain() &&
!(servant_manager instanceof org.omg.PortableServer.ServantActivator))
{
throw new WrongPolicy();
}
if (!isRetain() &&
!(servant_manager instanceof org.omg.PortableServer.ServantLocator))
{
throw new WrongPolicy();
}
servantManager = servant_manager;
}