Revert "utils for java"

This reverts commit 00f79efec3ea02b589a6fac7a91aab849a92ffea.