Simple java utilities