Helper utilities I have written in java.