Constructing jaxb object with KeyInfo
===

I have a jaxb schema for a web service, which returns a X509 certificate as a service key in response to a client's request. The segment of the response is:

`<ns0:MyServiceKeys>`

`  <ns0:KeyInfo Type="KeyType/MyServiceKey">`

`    <ds:KeyInfo xmlns:ds=".../xmldsig#>`

`      <ds:X509Data>`

`        <ds:X509Certificate>MIIB…</ds:X509Certificate/>`

`      </ds:X509Data>`

`    </ds:KeyInfo>`

`  </ns0:KeyInfo>`

`</ns0:MyServiceKeys>`

I have an encoded certificate.

Any ideas on how the response JAXB type can be constructed with this certificate for marshaling the response back to the client without loosing the integrity of the <MyServiceKeys> block?