From only reading these two lines it seems reasonable to perform the env.put before calling super.add(env)