}
return metadata;
}
private void parseMavenMetadataInfo(final URI metadataLocation, final MavenMetadata metadata) throws Exception {
ExternalResource resource = repository.getResource(metadataLocation);
if (resource == null) {
throw new ResourceNotFoundException(String.format("Maven meta-data not available: %s", metadataLocation));
}
try {
parseMavenMetadataInto(resource, metadata);
} finally {
resource.close();
}
}