this.uidService = (UIDService) serviceBroker.getService( this, UIDService.class, null); if (uidService == null) { throw new RuntimeException( "Unable to obtain UIDService"); }
    private void initPossibleValues() throws TechSpecNotFoundException {                    if (serviceBroker == null) {            throw new TechSpecNotFoundException("ServiceBroker is null.");                    }                //Don't do this unless needed.        if (diagnosisTechSpec != null && this.possibleValues != null) { return; }                        if (!serviceBroker.hasService( DiagnosisTechSpecService.class )) {            throw new TechSpecNotFoundException("TechSpec Service not available.");                    }                // **********************************************get the tect spec service        DiagnosisTechSpecService DiagnosisTechSpecService =                (DiagnosisTechSpecService) serviceBroker.getService(this, DiagnosisTechSpecService.class, null);        if (DiagnosisTechSpecService == null) {            throw new TechSpecNotFoundException(            "Unable to obtain tech spec service");        }                this.uidService = (UIDService)             serviceBroker.getService( this, UIDService.class, null);        if (uidService == null) {            throw new RuntimeException(            "Unable to obtain UIDService");        }                      //call tech spec service & get action tech spec                diagnosisTechSpec = (DiagnosisTechSpecInterface) DiagnosisTechSpecService.getDiagnosisTechSpec(this.getClass().getName());        if (diagnosisTechSpec == null) {            throw new TechSpecNotFoundException("Cannot find Diagnosis Tech Spec for "+ this.getClass().getName() );        }                this.setPossibleValues(diagnosisTechSpec.getPossibleValues());        this.assetType = diagnosisTechSpec.getAssetType();                serviceBroker.releaseService(this, DiagnosisTechSpecService.class, DiagnosisTechSpecService);            }