String ns = reader.getAttributeValue(null, "namespace");
if (ns == null) {
throw new InvalidValueException("Attribute 'namespace' is missing");
}
String location = reader.getAttributeValue(null, "location");
ContributionImport contributionImport = this.contributionFactory.createContributionImport();
if (location != null) {
contributionImport.setLocation(location);
}
contributionImport.setNamespace(ns);
contribution.getImports().add(contributionImport);
} else if (EXPORT.equals(element)) {
String ns = reader.getAttributeValue(null, "namespace");
if (ns == null) {
throw new InvalidValueException("Attribute 'namespace' is missing");