Java: Temporal environment