public <T> JAXBElement<T> unmarshal(final XMLStreamReader input, final Class<T> declaredType) throws JAXBException {
final Context context = begin();
try {
return unmarshaller.unmarshal(input, declaredType);
} finally {
context.finish();
}
}
/**
* Delegates the unmarshalling to the wrapped unmarshaller.