// Build the domain composite
SCADefinitions aggregatedDefinitions = new SCADefinitionsImpl();
for (SCADefinitions definition : policyDefinitions) {
SCADefinitionsUtil.aggregateSCADefinitions(definition, aggregatedDefinitions);
}
CompositeBuilder compositeBuilder = new CompositeBuilderImpl(assemblyFactory, null, scaBindingFactory,
intentAttachPointTypeFactory, documentBuilderFactory, transformerFactory,
contractMapper, aggregatedDefinitions, monitor, bindingMap);
try {
compositeBuilder.build(domainComposite);
analyzeProblems();
} catch (Exception e) {
response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, getDescription(e));
return;
}