xrootd4j: Refactor to fix IntelliJ warnings

Target: master
Acked-by: Karsten Schwank <karsten.schwank@desy.de>
Patch: http://rb.dcache.org/r/6204/