split trace system into Java