Implementation of the xrootd data access protocol in Java