Some utils used in java project.