Add GenerateTree by Java