Java: added a *very* simple debug method to the environment.