/** Returns the Login adapter for this config model. */
  protected LoginAdapter getLoginFromModel() {

    if (this.pool().getLoginConfig() == null) {
      return NullLoginAdapter.instance();
    }
    return (LoginAdapter) this.adapt(this.pool().getLoginConfig());
  }
  /**
   * Adds the children of this adapter to the given list.
   *
   * @param children The list of children
   */
  protected void addChildrenTo(List children) {
    super.addChildrenTo(children);

    if (this.getLogin() != NullLoginAdapter.instance()) children.add(getLogin());
  }
  /** Removes the login adapter from this model. */
  protected void removeLogin() {

    this.setLogin(NullLoginAdapter.instance());
  }