added file support to the java client and integration tests