title: Set a Value for JAXBElement<String>
body: <p>I have a generated class that looks like below.  I need to call setAmount() from a POJO, but I don't know what value to pass for the arg.   It takes type JAXBElement, and I haven't found a way to instantiate that.</p>
  
  <p>I have an ObjectFactory, but it only creates the class CardRequest.</p>
  
  <p>Can anyone suggest a way?</p>
  
  <pre><code>@XmlAccessorType(XmlAccessType.FIELD)
  @XmlType(name = "", propOrder = {
      "amount",
  })
  @XmlRootElement(name = "card-request")
  public class CardRequest {
  
      @XmlElementRef(name = "amount", namespace = "http://mycompany/services", type = JAXBElement.class)
      protected JAXBElement&lt;String&gt; amount;
  
      public JAXBElement&lt;String&gt; getAmount() {
          return amount;
      }
  
      public void setAmount(JAXBElement&lt;String&gt; value) {
          this.amount = ((JAXBElement&lt;String&gt; ) value);
      }
  }
  </code></pre>