Replace Java 6 method call which is breaking the build on hudson