add java structure