if ((logger != null) && (logger != LoggingService.NULL)) { serviceBroker.releaseService( this, LoggingService.class, logger); logger = LoggingService.NULL; }
if (log != null) { serviceBroker.releaseService(this, LoggingService.class, log); }
    public void unload() {        super.unload();        if (blackboard != null) {            serviceBroker.releaseService(            this, BlackboardService.class, blackboard);            blackboard = null;        }        if (eventService != null) {            serviceBroker.releaseService(            this, EventService.class, eventService);            eventService = null;        }        if ((logger != null) && (logger != LoggingService.NULL)) {            serviceBroker.releaseService(            this, LoggingService.class, logger);            logger = LoggingService.NULL;        }    }