/**
* Process <export.resource uri=""/>
*/
public ResourceExport read(XMLStreamReader reader) 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 (EXPORT_RESOURCE.equals(element)) {
String uri = reader.getAttributeValue(null, URI);
if (uri == null) {
error("AttributeURIMissing", reader);
//throw new ContributionReadException("Attribute 'uri' is missing");
} else
resourceExport.setURI(uri);
}
break;
case XMLStreamConstants.END_ELEMENT:
if (EXPORT_RESOURCE.equals(reader.getName())) {