/**
   * Inits created MIDlet suite environment objects and global subsystems needed for all suites.
   *
   * <p>The method also loads MIDlet suite paramaters and arguments from the natively saved <code>
   * CommandState</code> instance.
   */
  protected void initSuiteEnvironment() {
    super.initSuiteEnvironment();

    externalAppId = 0;
    midletDisplayName = null;

    /* Set up permission checking for this suite. */
    AccessController.setAccessControlContext(new CdcAccessControlContext(midletSuite));
  }
  /** Creates environment objects needed to AMS task */
  protected void createSuiteEnvironment() {
    foregroundController = this;

    lcduiEnvironment =
        new LCDUIEnvironmentForCDC(
            internalSecurityToken, eventQueue, isolateId, foregroundController);
    foregroundEventProducer = new CdcForegroundEventProducer(eventQueue);

    // creates display container, needs foregroundController
    super.createSuiteEnvironment();

    midletStateHandler = MIDletStateHandler.getMidletStateHandler();

    MIDletSuiteStorage mss = MIDletSuiteStorage.getMIDletSuiteStorage(internalSecurityToken);

    midletStateHandler.initMIDletStateHandler(
        internalSecurityToken, this, new CdcMIDletLoader(mss), this);

    MidletSuiteContainer msc = new MidletSuiteContainer(mss);

    RmsEnvironment.init(internalSecurityToken, msc);
  }
 /** Extends base class initialization with initializatons specific for the AMS task */
 protected void init() {
   super.init();
 }