Add file handle support to the java client and integration tests