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