Revert "Update utils.java code"

This reverts commit 3839e96f295bdcedb7d883573125d503ffb09738.