private void createDependencies(final DeploymentPhaseContext phaseContext, final ModuleSpec.Builder specBuilder, final List<ModuleDependency> apiDependencies) {
if (apiDependencies != null)
for (ModuleDependency dependency : apiDependencies) {
final List<FilterSpecification> importFilters = dependency.getImportFilters();
final List<FilterSpecification> exportFilters = dependency.getExportFilters();
final PathFilter importFilter;
final PathFilter exportFilter;
final MultiplePathFilterBuilder importBuilder = PathFilters.multiplePathFilterBuilder(true);
for (FilterSpecification filter : importFilters) {
importBuilder.addFilter(filter.getPathFilter(), filter.isInclude());
}
if (dependency.isImportServices()) {