GROOVY-6948: NioGroovyMethods don't work under JDK6
minor refactor (code cleanup)