Start migration to java's NIO