}
  public Object getService(ServiceBroker sb,			   Object requestor,			   Class serviceClass) {    if (log.isDebugEnabled()) {      log.debug("Security Service Request: "		+ requestor.getClass().getName()		+ " - " + serviceClass.getName());    }    if (sb == null) {      if (log.isWarnEnabled()) {	log.warn("Running in a test environment");      }      sb = serviceBroker;    }    SecurityManager security = System.getSecurityManager();    if (serviceClass == null) {      throw new IllegalArgumentException("Illegal service class");    }    if(security != null) {      log.debug("Checking Security Permission for :"+serviceClass.getName()+		"\nRequestor is "+requestor.getClass().getName());      security.checkPermission(new SecurityServicePermission(serviceClass.getName()));    }    Service service = null;    try {      service = getInternalService(sb, requestor, serviceClass);    }    catch (Exception e) {      if (log.isWarnEnabled()) {	log.warn("Unable to get service request for " + serviceClass.getName() + ": " , e);      }    }    if (service == null) {      if (log.isWarnEnabled()) {	log.warn("Service not registered: " + serviceClass.getName()	  + " Requestor:" + requestor.getClass().getName());      }    }    return service;  }