ContributionMetadata metaData;
Monitor monitor = deployer.createMonitor();
try {
metaData = deployer.loadXMLDocument(IOHelper.getLocationAsURL(metaDataURL), monitor);
} catch (Exception e) {
throw new ValidationException(e);
}
monitor.analyzeProblems();
contribution.getDeployables().addAll(metaData.getDeployables());
contribution.getImports().addAll(metaData.getImports());
contribution.getExports().addAll(metaData.getExports());