Xpp3Dom dom;
try {
dom = Xpp3DomBuilder.build(new XmlStreamReader(artifactMappingsItem.getInputStream()));
}
catch (final IOException e) {
throw new LocalStorageException("Could not load artifact mappings", e);
}
catch (final XmlPullParserException e) {
throw new LocalStorageException("Could not load artifact mappings", e);
}
final Xpp3Dom[] artifactRepositories = dom.getChildren("repository");
for (final Xpp3Dom artifactRepositoryDom : artifactRepositories) {
final String repositoryUri = artifactRepositoryDom.getAttribute("uri");