Get the element value of a JAXB element.
Convenience method to abstract whether working with either
a javax.xml.bind.JAXBElement instance or an instance of
@XmlRootElement annotated Java class.
if (jaxbElement instanceof JAXBElement) {
return ((JAXBElement)jaxbElement).getValue();
} else {
// assume that class of this instance is
// annotated with @XmlRootElement.
return jaxbElement;
}