final MultiplePathFilterBuilder exportBuilder = PathFilters
.multiplePathFilterBuilder(export);
for (final FilterSpecification filter : exportFilters) {
exportBuilder.addFilter(filter.getPathFilter(), filter.isInclude());
}
exportFilter = exportBuilder.create();
}
final DependencySpec depSpec = DependencySpec.createModuleDependencySpec(importFilter, exportFilter, dependency
.getModuleLoader(), dependency.getIdentifier(), dependency.isOptional());
specBuilder.addDependency(depSpec);
logger.debug("Adding dependency " + dependency + " to module " + specBuilder.getIdentifier());