/**
* Process <export.resource uri=""/>
*/
public ResourceExport read(XMLStreamReader reader, ProcessorContext context) throws ContributionReadException {
ResourceExport resourceExport = this.factory.createResourceExport();
QName element = null;
try {
while (reader.hasNext()) {
int event = reader.getEventType();
switch (event) {
case START_ELEMENT:
element = reader.getName();
// Read <export.resource>
if (ResourceExport.TYPE.equals(element)) {
String uri = reader.getAttributeValue(null, URI);
if (uri == null) {
error(context.getMonitor(), "AttributeURIMissing", reader);
//throw new ContributionReadException("Attribute 'uri' is missing");
} else
resourceExport.setURI(uri);
}
break;
case XMLStreamConstants.END_ELEMENT:
if (ResourceExport.TYPE.equals(reader.getName())) {