/**
   * Appends WMS basic elevation model parameters as elements to a specified context. If a parameter
   * key exists, that parameter is appended to the context. This also writes common WMS layer
   * elements by invoking {@link
   * DataConfigurationUtils#createWMSLayerElements(gov.nasa.worldwind.avlist.AVList,
   * org.w3c.dom.Element)}.
   *
   * <table>
   * <th><td>Key</td><td>Name</td><td>Type</td></th> <tr><td>{@link AVKey#PIXEL_TYPE}</td><td>PixelType</td><td>String</td></tr>
   * </table>
   *
   * @param params the key-value pairs which define the WMS basic elevation model parameters.
   * @param context the XML document root on which to append parameter elements.
   * @return a reference to context.
   * @throws IllegalArgumentException if either the parameters or the context are null.
   */
  public static Element createWMSBasicElevationModelElements(AVList params, Element context) {
    if (params == null) {
      String message = Logging.getMessage("nullValue.ParametersIsNull");
      Logging.logger().severe(message);
      throw new IllegalArgumentException(message);
    }

    if (context == null) {
      String message = Logging.getMessage("nullValue.ContextIsNull");
      Logging.logger().severe(message);
      throw new IllegalArgumentException(message);
    }

    // Common WMS layer elements.
    DataConfigurationUtils.createWMSLayerElements(params, context);

    return context;
  }