Object logical = context.getSourceDataType().getLogical();
if (logical instanceof XMLType) {
name = ((XMLType)logical).getElementName();
}
}
return new BeanXMLStreamReaderImpl(name, source);
} catch (Exception e) {
throw new TransformationException(e);
}
}