Convert WhirrHadoopClusterImpl from groovy to java