protected SimpleServletSupport createSimpleServletSupport() {    blackboard = (BlackboardService) serviceBroker.getService( this, BlackboardService.class, null); if (blackboard == null) { throw new RuntimeException( "Unable to obtain blackboard service"); }   ns = (NamingService) serviceBroker.getService( this, NamingService.class, null); if (ns == null) { throw new RuntimeException( "Unable to obtain naming service"); }
protected SimpleServletSupport createSimpleServletSupport(Servlet servlet) { SimpleServletSupport support = super.createSimpleServletSupport(servlet);
  protected SimpleServletSupport createSimpleServletSupport() {    // the agentId is known from "setBindingSite(..)"    // get the blackboard service (for "query")    blackboard = (BlackboardService)      serviceBroker.getService(          this,           BlackboardService.class,          null);    if (blackboard == null) {      throw new RuntimeException(          "Unable to obtain blackboard service");    }    // get the naming service (for "listAgentNames")    ns = (NamingService)      serviceBroker.getService(          this,           NamingService.class,          null);    if (ns == null) {      throw new RuntimeException(          "Unable to obtain naming service");    }    // create a new "SimpleServletSupport" instance    return makeServletSupport ();  }