// Construct the object key template
int serverid = mediator.getServerId() ;
int scid = mediator.getScid() ;
String orbId = getORB().getORBData().getORBId();
ObjectKeyTemplate oktemp = new POAObjectKeyTemplate( getORB(),
scid, serverid, orbId, poaId ) ;
if (debug) {
ORBUtility.dprint( this, "Initializing poa: oktemp=" + oktemp ) ;
}
// Note that parent == null iff this is the root POA.
// This was used to avoid executing interceptors on the RootPOA.
// That is no longer necessary.
boolean objectAdapterCreated = true; // parent != null ;
// XXX extract codebase from policies and pass into initializeTemplate
// after the codebase policy change is finalized.
initializeTemplate( oktemp, objectAdapterCreated,
policies,
null, // codebase
null, // manager id
oktemp.getObjectAdapterId()
) ;
if (state == STATE_START)
state = STATE_RUN ;
else if (state == STATE_INIT)