public SDOTypes read(XMLStreamReader reader,ProcessorContext context) throws ContributionReadException, XMLStreamException {
assert SDOTypes.SDO_TYPES.equals(reader.getName());
// FIXME: How do we associate the application HelperContext with the one
// imported by the composite
SDOTypes sdoTypes = new SDOTypes();
String factoryName = reader.getAttributeValue(null, "factory");
if (factoryName != null) {
sdoTypes.setFactory(factoryName);
}
String location = reader.getAttributeValue(null, "location");
if (location != null) {
sdoTypes.setSchemaLocation(location);
}
String ns = reader.getAttributeValue(null, "namespace");
sdoTypes.setNamespace(ns);
// Skip to end element
while (reader.hasNext()) {
if (reader.next() == END_ELEMENT && SDOTypes.SDO_TYPES.equals(reader.getName())) {
break;