Java automation structure