private void processInitialNamingResources() {
    // Resource links
    ContextResourceLink[] resourceLinks = namingResources.findResourceLinks();
    for (ContextResourceLink resourceLink : resourceLinks) {
      addResourceLink(resourceLink);
    }

    // Resources
    ContextResource[] resources = namingResources.findResources();
    for (ContextResource resource : resources) {
      addResource(resource);
    }

    // Resources Env
    ContextResourceEnvRef[] resourceEnvRefs = namingResources.findResourceEnvRefs();
    for (ContextResourceEnvRef resourceEnvRef : resourceEnvRefs) {
      addResourceEnvRef(resourceEnvRef);
    }

    // Environment entries
    ContextEnvironment[] contextEnvironments = namingResources.findEnvironments();
    for (ContextEnvironment contextEnvironment : contextEnvironments) {
      addEnvironment(contextEnvironment);
    }

    // EJB references
    ContextEjb[] ejbs = namingResources.findEjbs();
    for (ContextEjb ejb : ejbs) {
      addEjb(ejb);
    }
  }
  public void stop() {
    if (!running) return;

    namingResources.removePropertyChangeListener(this);

    running = false;
  }
  public void start() {
    if (running) return;

    namingResources.addPropertyChangeListener(this);
    processInitialNamingResources();

    running = true;
  }