java version of petuum