removed import of Java 7 class AutoCloseable