try {
Class staxResult = PrivilegedAccessHelper.getClassForName(STAX_SOURCE_CLASS_NAME);
Constructor cons = PrivilegedAccessHelper.getDeclaredConstructorFor(staxResult, new Class[]{XMLEventReader.class}, false);
source = (Source)PrivilegedAccessHelper.invokeConstructor(cons, new Object[]{eventReader});
} catch(Exception ex) {
throw new MarshalException(ex);
}
return this.unmarshal(source, javaClass);
}