/**
   * Process XmlElements.
   *
   * <p>The XmlElements object will be set on the property, and it will be flagged as a 'choice'.
   *
   * @param xmlElements
   * @param oldProperty
   * @param tInfo
   * @return
   */
  private Property processXmlElements(
      XmlElements xmlElements, Property oldProperty, TypeInfo tInfo) {
    resetProperty(oldProperty, tInfo);
    oldProperty.setChoice(true);
    oldProperty.setXmlElements(xmlElements);
    // handle idref
    oldProperty.setIsXmlIdRef(xmlElements.isXmlIdref());
    // handle XmlElementWrapper
    if (xmlElements.getXmlElementWrapper() != null) {
      oldProperty.setXmlElementWrapper(xmlElements.getXmlElementWrapper());
    }

    return oldProperty;
  }