/**
   * @param form the form containing the proxy info
   * @param ctx the request context associated to this request
   * @param cmd the kicktstart command to which the proxy info will be copied..
   */
  protected void storeProxyInfo(
      DynaActionForm form, RequestContext ctx, KickstartScheduleCommand cmd) {
    // if we need to go through a proxy, do it here.
    String phost = form.getString(PROXY_HOST);
    String phostCname = form.getString(PROXY_HOST_CNAME);

    if (!StringUtils.isEmpty(phostCname)) {
      cmd.setProxyHost(phostCname);
    } else if (!StringUtils.isEmpty(phost)) {
      cmd.setProxy(SystemManager.lookupByIdAndOrg(new Long(phost), ctx.getCurrentUser().getOrg()));
    }
  }