Generate java code to fill tree data structure using interactive browser interface