ContributionMetadata contribution = (ContributionMetadata)staxProcessor.read(reader, context);
return contribution;
} catch (XMLStreamException e) {
ContributionReadException ex = new ContributionReadException(e);
error(context.getMonitor(), "XMLStreamException", inputFactory, ex);
throw ex;
} catch (IOException e) {
ContributionReadException ex = new ContributionReadException(e);
error(context.getMonitor(), "IOException", inputFactory, ex);
throw ex;
} finally {
try {
if (urlStream != null) {