List<List<String>> overrides = new ArrayList<List<String>>();
for( IDuccUimaAggregateComponent component: aggregateConfiguration.getComponents()) {
descriptorPaths.add(component.getDescriptor());
overrides.add(component.getOverrides());
}
UimaASPrimitiveDeploymentDescriptor dd =
UimaUtils.createUimaASDeploymentDescriptor(
aggregateConfiguration.getName(),
aggregateConfiguration.getDescription(),
aggregateConfiguration.getBrokerURL(),
aggregateConfiguration.getEndpoint(),
aggregateConfiguration.getThreadCount(),
userLogDir,
jobId+"-uima-ae-descriptor-"+Utils.getPID()+".xml",
overrides,
descriptorPaths.toArray(new String[descriptorPaths.size()])
);
return writeDDFile(dd.toXML(), jobId);
}