this.uidService = (UIDService) serviceBroker.getService( this, UIDService.class, null); if (uidService == null) { throw new RuntimeException( "Unable to obtain UIDService"); }
    public void load() {                // get the log        logger = (LoggingService)        serviceBroker.getService(        this, LoggingService.class, null);        if (logger == null) {            logger = LoggingService.NULL;        }                // get the agentId        AgentIdentificationService agentIdService =        (AgentIdentificationService)        serviceBroker.getService(        this,        AgentIdentificationService.class,        null);        if (agentIdService == null) {            throw new RuntimeException(            "Unable to obtain agent-id service");        }        this.agentId = agentIdService.getMessageAddress();        serviceBroker.releaseService(        this, AgentIdentificationService.class, agentIdService);        if (agentId == null) {            throw new RuntimeException(            "Unable to obtain agent id");        }                // get the blackboard        this.blackboard = (BlackboardService)        serviceBroker.getService(        this,        BlackboardService.class,        null);        if (blackboard == null) {            throw new RuntimeException(            "Unable to obtain blackboard service");        }                        // get the EventService        this.eventService = (EventService)        serviceBroker.getService(        this,        EventService.class,        null);        if (eventService == null) {            throw new RuntimeException(            "Unable to obtain EventService");        }                this.uidService = (UIDService)        serviceBroker.getService(        this,        UIDService.class,        null);        if (uidService == null) {            throw new RuntimeException(            "Unable to obtain UIDService");        }                        super.load();                     //Publish this servlet to the BB so the object monitors can talk to it.        blackboard.openTransaction();        blackboard.publishAdd(this);        blackboard.closeTransaction();        //call tech spec service & add action tech spec                // **********************************************get the tect spec service        ActionTechSpecService ActionTechSpecService =                (ActionTechSpecService) serviceBroker.getService(this, ActionTechSpecService.class, null);        if (ActionTechSpecService == null) {            logger.warn("Unable to obtain tech spec service");        } else {            ActionTechSpecService.addActionTechSpec("org.cougaar.coordinator.test.coordination.TestAction", new TestActionTechSpec());        }        //call tech spec service & add diagnosis tech spec                // **********************************************get the tect spec service        DiagnosisTechSpecService DiagnosisTechSpecService =                (DiagnosisTechSpecService) serviceBroker.getService(this, DiagnosisTechSpecService.class, null);        if (DiagnosisTechSpecService == null) {            logger.warn("Unable to obtain tech spec service");        } else {            DiagnosisTechSpecService.addDiagnosisTechSpec("org.cougaar.coordinator.test.coordination.TestDiagnosis", new TestDiagnosisTechSpec());        }            }