public EarDeployGenerator(
      String id,
      DeployContainer<EarDeployController> deployContainer,
      WebAppContainer parentContainer) {
    super(id, deployContainer, parentContainer.getRootDirectory());

    try {
      setExpandPrefix("_ear_");
      setExtension(".ear");
    } catch (Exception e) {
      throw new RuntimeException(e);
    }

    _parentContainer = parentContainer;

    _earDefaultList.addAll(parentContainer.getEarDefaultList());
  }
  /** Sets the webApp container. */
  public void setContainer(WebAppContainer container) {
    _container = container;

    if (_parentLoader == null) _parentLoader = container.getClassLoader();
  }