return factory;
}
private DefaultMessageTree newMessageTree(String id, int i, long timestamp) {
DefaultMessageTree tree = new DefaultMessageTree();
tree.setMessageId(id);
tree.setDomain("target");
tree.setHostName("localhost");
tree.setIpAddress("127.0.0.1");
tree.setParentMessageId("parentMessageId" + i);
tree.setRootMessageId("rootMessageId" + i);
tree.setSessionToken("sessionToken");
tree.setThreadGroupName("threadGroupName");
tree.setThreadId("threadId" + i);
tree.setThreadName("threadName");
tree.setParentMessageId("Cat-0a010680-384826-3");
tree.setRootMessageId("Cat-0a010680-384826-3");
tree.setMessage(newTransaction("type", "name" + i, timestamp, "0", 123456 + i, "data" + i));
return tree;
}