Mahout Java Code