Java EE Homework