You're right. Environment is in the public interface. However, EnvironmentFactory is not, so there is no public way to get an Environment variable from the public API. Also, as you noted Environment does not have a close() method, so there is no way to close an Environment variable using the public api either.