*/
static Remote toStub(ActivationID anId, Class stubFor)
{
try
{
ActivatableServerRef asr =
new ActivatableServerRef(makeId(anId), anId, 0, null);
UnicastServer.exportActivatableObject(asr);
return asr.exportClass(stubFor);
}
catch (RemoteException e)
{
InternalError ierr = new InternalError(
"Failed to obtain activatable stub");