public void buildAggregate(Object aggregation, NormalizedMessage message,
MessageExchange exchange, boolean doTimeout) throws Exception {
NormalizedMessage[] messages = ((SplitterAggregation) aggregation).messages;
String correlationId = ((SplitterAggregation) aggregation).correlationId;
SourceTransformer st = new SourceTransformer();
Document doc = st.createDocument();
Element root = createChildElement(aggregateElementName, doc);
root.setAttribute(countAttribute, Integer.toString(messages.length));
for (int i = 0; i < messages.length; i++) {
if (messages[i] != null) {
Element elem = st.toDOMElement(messages[i]);