Java EE homework